Using the * operation on time gives unexpected results
Bug #884687 reported by
Daniël van Eeden
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Confirmed
|
Low
|
Unassigned |
Bug Description
drizzle> insert into t1(t) values ('00:05:10');
Query OK, 1 row affected (0.001717 sec)
drizzle> select t,t*1.5 from t1;
+------
| t | t*1.5 |
+------
| 00:05:10 | 465 |
+------
1 row in set (0.000691 sec)
This differs from the SQL standard and behaviour from MySQL, PostgreSQL and SQLite.
If I understand it correctly the standards compliant behaviour should be to throw an error. The expected behaviour (PostgreSQL does this) is to return 00:07:45.
To post a comment you must log in.
See also: http:// databaseblog. myname. nl/2011/ 11/fixed- in-drizzle- or-just- different. html