1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-31 08:42:45 +03:00
unknown b96dbef6fd Fix bug #14016 date_format() 2nd parameter was compared using case insensitive
collation

By default constant strings in second parameter of date_time() have case
insensitive collation. Because of this expressions date_format(f,'%m') and 
date_format(f,'%M') wrongly becomes equal, which results in choosing wrong 
column to sort by.

Now if second parameter of date_format() is constant then it's collation is 
changed to case sensitive.


sql/item_timefunc.cc:
  Fix bug #14016 date_format() 2nd parameter was compared using case insensitive collation.
  If second parameter of date_format() is constant then it's collation is changed to case sensitive.
mysql-test/r/date_formats.result:
  Test case for bug#14016 2nd parameter was compared using case insensitive collation
mysql-test/t/date_formats.test:
  Test case for bug#14016 2nd parameter was compared using case insensitive collation
2005-10-25 20:37:26 +04:00
..
2005-09-08 12:09:30 +04:00
2005-10-21 14:41:56 +05:00
2005-09-25 11:35:32 +02:00
2005-08-19 01:57:22 -07:00
2005-10-09 01:32:09 +02:00
2005-08-08 13:46:13 -07:00
2005-08-04 15:25:03 +05:00
2005-08-07 03:16:15 +01:00
2005-09-06 18:03:08 +04:00
2005-09-30 00:52:18 +02:00
2005-09-30 11:39:49 +02:00
2005-07-31 04:28:01 -07:00
2005-09-05 12:33:25 +02:00
2005-01-30 10:24:03 +00:00
2004-11-15 17:03:54 +01:00
2005-10-13 19:51:07 +05:00
2005-10-12 09:47:59 +02:00
2005-08-09 00:13:49 +03:00