Bug #12454 | Do not convert datetime in datetime where sort result set in join. | ||
---|---|---|---|
Submitted: | 9 Aug 2005 9:35 | Modified: | 15 Aug 2005 7:51 |
Reporter: | Valentin Komissarov | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.0.11 | OS: | Windows (Win32) |
Assigned to: | CPU Architecture: | Any |
[9 Aug 2005 9:35]
Valentin Komissarov
[9 Aug 2005 9:36]
Valentin Komissarov
#RESULT NOT IS DATETIME !!! RESULT IS VARCHAR 2005-07-01 2005-08-01 2005-08-09
[10 Aug 2005 7:35]
Valentin Komissarov
CAST() - in this queryes makes as itself
[11 Aug 2005 18:26]
Aleksey Kishkin
Hi! mysql> create table ttt select STR_TO_DATE(t2.Value,GET_FORMAT(DATE,'EUR')) as DateValue -> from table1 t -> left join table2 t2 on t2.ID=t.ID_Table2; Query OK, 3 rows affected (0.11 sec) Records: 3 Duplicates: 0 Warnings: 0 mysql> show create table ttt \G *************************** 1. row *************************** Table: ttt Create Table: CREATE TABLE `ttt` ( `DateValue` date default NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 1 row in set (0.00 sec) Could you please to write more detailed how you checked type of results? What client did you use?
[15 Aug 2005 7:51]
Valentin Komissarov
Hi Aleksey. Test in MySQL 5.0.11-beta-nt Bug closed. Thanks. PS. I use EMS MySQL Manager 3.3.0.4 Lite I understand, that the mistake can disappear in the client, but more often it is a mistake of a server. Best Regards.