1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-28 13:01:41 +03:00
Evgeny Potemkin e435df8e09 Bug#56271: Wrong comparison result with STR_TO_DATE function
The Item_func_str_to_date class wasn't providing correct integer DATETIME
representation as expected. This led to wrong comparison result and didn't
allowed the STR_TO_DATE function to be used with indexes.
Also, STR_TO_DATE function was inconsisted on throwing warnings/errors.
Fixed now.

val_int and result_as_longlong methods were added to the Item_func_str_to_date
class. 

mysql-test/r/func_time.result:
  Test case result adjusted after fixing bug#56271.
mysql-test/r/parser.result:
  Test case result adjusted after fixing bug#56271.
mysql-test/r/select.result:
  A test case result adjusted after fixing bug#56271.
mysql-test/r/strict.result:
  Test case result adjusted after fixing bug#56271.
mysql-test/r/type_datetime.result:
  Added a test case for the bug#56271.
mysql-test/t/strict.test:
  Test case adjusted after fixing bug#56271.
mysql-test/t/type_datetime.test:
  Added a test case for the bug#56271.
sql/item_timefunc.cc:
  Bug#56271: Wrong comparison result with STR_TO_DATE function
  val_int and result_as_longlong methods were added to the Item_func_str_to_date
  class. 
  Item_func_str_to_date::get_date now throws the ER_WRONG_VALUE_FOR_TYPE warning
  on incorrect value.
sql/item_timefunc.h:
  Bug#56271: Wrong comparison result with STR_TO_DATE function
  val_int and result_as_longlong methods were added to the Item_func_str_to_date
  class.
2010-09-07 10:45:00 +04:00
..
2010-01-11 18:47:27 -07:00
2010-02-24 13:15:34 +04:00
2010-02-24 13:15:34 +04:00
2010-02-24 13:15:34 +04:00
2010-01-15 15:42:15 +04:00
2010-01-15 15:42:15 +04:00
2009-12-08 10:53:40 +03:00
2009-12-09 18:56:34 +03:00
2009-09-10 03:18:29 -06:00
2010-04-13 19:04:45 +04:00
2009-09-10 03:18:29 -06:00
2010-06-24 15:29:53 +04:00
2010-03-19 11:29:12 +03:00
2009-11-04 10:17:39 +01:00
2010-02-11 18:32:53 +01:00
2010-07-30 16:56:57 +03:00
2010-02-24 13:15:34 +04:00
2010-02-24 13:15:34 +04:00
2010-02-24 13:15:34 +04:00
2010-07-09 14:46:46 +04:00
2010-01-15 15:42:15 +04:00
2010-07-15 18:46:41 +03:00
2009-11-20 22:51:12 +03:00
2010-07-14 15:05:20 +03:00
2010-07-21 18:20:29 +03:00
2010-05-26 22:34:25 +08:00
2009-09-10 03:18:29 -06:00
2010-04-27 13:58:21 +04:00
2010-08-25 13:17:15 +05:00
2010-07-05 13:22:13 +03:00
2010-08-25 13:17:15 +05:00
2010-01-15 15:42:15 +04:00
2010-08-28 20:36:17 +04:00
2009-11-06 17:54:19 +03:00
2010-01-29 16:54:27 +02:00
2009-10-19 14:58:13 +02:00
2010-02-24 00:22:19 -07:00
2009-12-29 15:19:05 +03:00
2009-10-27 14:09:36 +04:00
2009-11-20 22:51:12 +03:00
2010-08-11 17:55:07 +02:00
2010-07-16 21:25:00 +03:00
2009-09-10 03:18:29 -06:00
2009-09-10 03:18:29 -06:00
2009-09-10 03:18:29 -06:00
2009-09-10 03:18:29 -06:00
2010-01-15 15:42:15 +04:00
2009-11-20 23:30:00 +03:00
2010-08-05 15:34:19 +03:00
2010-06-25 16:32:47 +03:00
2010-01-15 15:42:15 +04:00
2010-01-15 15:42:15 +04:00
2010-02-27 11:43:32 +04:00
2009-12-16 10:48:07 +03:00