Bug #8935 CAST(time_column AS DECIMAL) crash
Submitted: 4 Mar 2005 0:10 Modified: 7 Mar 2005 16:25
Reporter: Peter Gulutzan Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.0.3-alpha-debug OS:Linux (SUSE 9.2)
Assigned to: Alexey Botchkov CPU Architecture:Any

[4 Mar 2005 0:10] Peter Gulutzan
Description:
Casting a time to a decimal causes a crash.

How to repeat:
mysql> create table t47 (s1 time);
Query OK, 0 rows affected (0.00 sec)

mysql> insert into t47 values (current_time);
Query OK, 1 row affected (0.00 sec)

mysql> select cast(s1 as decimal(5,2)) from t47;
ERROR 2013 (HY000): Lost connection to MySQL server during query
[7 Mar 2005 15:55] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/internals/22737
[7 Mar 2005 16:25] Alexey Botchkov
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html