1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-18 10:22:14 +03:00
Files
mariadb/mysql-test/t
Alexander Barkov 6bf10a8623 Bug#52849 [Com]: datetime index not work
Problem: after introduction of "WL#2649 Number-to-string conversions"

This query:
  SET NAMES cp850; -- Or any other non-latin1 ASCII-based character set
  SELECT * FROM t1
  WHERE datetime_column='2010-01-01 00:00:00'
started to add extra character set conversion: 
  SELECT * FROM t1
  WHERE CONVERT(datetime_column USING cp850)='2010-01-01 00:00:00';

so index on DATETIME column was not used anymore.
Fix:
  avoid convertion of NUMERIC/DATETIME items
  (i.e. those with derivation DERIVATION_NUMERIC).
2010-05-05 13:28:37 +04:00
..
2009-08-20 14:30:59 +02:00
2010-02-25 23:13:11 +04:00
2010-01-11 18:47:27 -07:00
2010-02-06 13:28:06 +03:00
2010-02-24 16:52:27 +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-02-24 13:15:34 +04:00
2010-02-24 13:15:34 +04:00
2010-02-02 02:22:16 +03:00
2010-04-19 15:35:13 +02:00
2009-12-08 10:53:40 +03:00
2009-12-09 18:56:34 +03:00
2010-04-13 19:04:45 +04:00
2010-04-13 19:04:45 +04:00
2010-04-13 19:04:45 +04:00
2010-03-10 12:22:08 +02:00
2010-02-11 18:32:53 +01:00
2009-10-19 14:58:13 +02:00
2009-05-06 15:00:14 +05:30
2010-01-15 15:42:15 +04:00
2010-01-15 15:42:15 +04:00
2010-02-26 13:02:57 +04:00
2010-02-02 02:22:16 +03:00
2009-12-03 23:08:27 +03:00
2009-09-04 15:20:58 +02:00
2009-11-30 19:09:42 +03:00
2009-12-03 02:09:22 +03:00
2010-04-20 10:51:50 +02:00
2009-12-24 10:56:13 +03:00
2009-11-17 17:08:37 +01:00
2010-04-13 19:04:45 +04:00
2009-12-10 17:38:01 +02:00
2009-10-19 14:58:13 +02:00
2009-09-04 15:20:58 +02:00
2009-08-12 12:03:05 +02:00
2010-02-02 12:22:17 +03:00
2010-02-24 00:22:19 -07:00
2009-11-02 21:05:42 +01:00
2009-12-29 15:19:05 +03:00
2010-02-06 13:28:06 +03:00
2010-02-06 13:28:06 +03:00
2009-12-03 23:08:27 +03:00
2009-11-20 22:51:12 +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
2009-09-10 03:18:29 -06:00
2009-09-10 03:18:29 -06:00
2010-04-19 15:35:13 +02:00
2009-09-29 14:16:23 +03:00
2009-12-29 15:19:05 +03:00
2009-07-03 10:19:32 +02:00
2010-04-19 15:35:13 +02:00
2009-11-27 18:10:28 +02:00
2010-04-13 19:04:45 +04:00
2010-04-13 19:04:45 +04:00
2010-04-13 19:04:45 +04:00
2010-04-13 19:04:45 +04:00
2010-04-13 19:04:45 +04:00
2009-12-03 23:08:27 +03:00
2009-12-11 15:24:23 +03:00
2010-02-20 12:40:21 +03:00
2010-02-24 16:52:27 +03:00