SELECT QUARTER("0000-00-00") suceeds when it should have failed
Bug #321684 reported by
Aarti Pai
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Fix Released
|
High
|
Jay Pipes |
Bug Description
drizzletest: At line 39: query 'SELECT QUARTER(
T
SELECT QUARTER(
QUARTER(
0
Changed in drizzle: | |
milestone: | cirrus → tarball |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The QUARTER() function succeeds in these instances where it should have failed - Invalid dates: repos/temporal- data/tests/ suite/temporal/ t/quarter. test
See /home/aarti/
#--error 1686 "0000-01- 01"); "0001-00- 01"); "0001-01- 00"); "2000-02- 30");
#SELECT QUARTER(
#--error 1686
#SELECT QUARTER(
#--error 1686
#SELECT QUARTER(
#--error 1686
#SELECT QUARTER(
SELECT QUARTER( '07-31- 2009'); '07-31- 2009')
QUARTER(
NULL
Warnings:
Warning 1292 Incorrect datetime value: '07-31-2009'
SELECT QUARTER( '1976-15- 15'); '1976-15- 15')
QUARTER(
NULL
SELECT QUARTER( '0000-00- 00'); '0000-00- 00')
QUARTER(
0
SELECT QUARTER( '2008-12- 00'); '2008-12- 00')
QUARTER(
4