1
0
mirror of https://github.com/MariaDB/server.git synced 2025-10-21 08:47:42 +03:00
Files
mariadb/mysql-test/r
Alexander Barkov 7d88b552e2 Bug#31384 DATE_ADD() and DATE_SUB() return binary data
Problem: DATE_ADD() is a hybrid function and can return
DATE, DATETIME or VARCHAR data type depending on arguments.

In case of VARCHAR data type, DATE_ADD() reported "binary" character set,
which was wrong.

Fix: make DATE_ADD() return @character_set_connection in VARCHAR context.
 @ mysql-test/include/ctype_numconv.inc
   Adding tests
 @ mysql-test/r/ctype_binary.result
   Adding tests
 @ mysql-test/r/ctype_cp1251.result
   Adding tests
 @ mysql-test/r/ctype_latin1.result
   Adding tests
 @ mysql-test/r/ctype_ucs.result
   Adding tests
 @ mysql-test/r/ctype_utf8.result
   Adding tests
 @ sql/item_strfunc.cc
  - Moving code from Item_str_ascii_func::val_str() to
  Item_str_func::val_str_from_val_str_ascii(), as
  this code needs to be shared by Item_date_add_interval.
  - Adding str2 parameter to be used as a buffer, instead of
   using private ascii_buf member.
 @ sql/item_strfunc.h
  - Moving code from Item_str_ascii_func::val_str() to
  Item_str_func::val_str_from_val_str_ascii()
  - Removing "String *val_str_convert_from_ascii(String *str, String *ascii_buf)"
    prototype as it was neither used nor declared.
 @ sql/item_timefunc.h
  - Overwriting parent's charset_for_protocol() method,
    becase we need to behave differenlty in VARCHAR and DATE/DATETYPE context.
  - Adding ascii_buf for conversion.
  - Adding val_str_ascii() prototype.
  - Adding val_str() which uses newly added
    Item_str_func::val_str_from_val_str_ascii(),
    passing ascii_buf as a conversion buffer.
2011-02-10 11:18:08 +03:00
..
2011-01-25 12:14:28 +05:30
2010-11-26 16:32:51 +02:00
2010-04-13 19:04:45 +04:00
2010-12-16 21:43:21 +03:00
2011-01-13 09:07:21 +01:00
2011-02-02 20:13:28 +02:00
2011-02-08 14:59:03 +01:00
2010-11-26 16:32:51 +02: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-07-14 15:05:20 +03:00
2010-07-21 18:20:29 +03:00
2010-04-27 13:58:21 +04:00
2010-08-25 13:17:15 +05:00
2010-12-01 12:28:21 +05:30
2011-02-08 11:21:14 +01:00
2011-01-11 15:15:25 +01:00
2010-09-13 15:56:56 +02:00
2010-11-15 16:59:49 +01:00
2010-11-26 16:32:51 +02:00
2010-09-13 15:56:56 +02:00
2011-01-10 16:13:12 +01:00
2011-01-10 15:08:31 +01:00
2010-02-24 00:22:19 -07:00
2010-10-20 16:56:09 +02:00
2010-10-20 16:56:09 +02:00
2010-09-30 14:06:50 +03:00
2010-09-30 14:06:50 +03:00
2010-09-30 14:06:50 +03:00
2010-09-30 14:06:50 +03:00
2011-02-01 13:23:28 +01:00
2011-01-12 10:31:41 +01:00
2011-01-31 15:04:39 +05:30
2010-02-27 11:43:32 +04:00
2010-12-14 13:46:00 +03:00