1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-27 01:57:48 +03:00
unknown cc2e929ac4 Bug #31887: DML Select statement not returning same results
when executed in version 5

Zero fill is a field attribute only. So we can't always 
propagate  constants for zerofill fields : the values and 
expression results don't have that flag.

Fixed by converting the const value to a string and 
using that in const propagation when the context allows it. 
Disable const propagation for fields with ZEROFILL flag in
all the other cases.


mysql-test/r/compare.result:
  Bug #31887: test case
mysql-test/t/compare.test:
  Bug #31887: test case
sql/item.cc:
  Bug #31887: If the context allows conversion
  of an int constant to a zero-filled string constant
  put the string constant instead of the int constant
  when doing const propagation
sql/mysql_priv.h:
  Bug #31887: a macro to get all the Field_num
  descendant fields.
2008-02-15 15:47:32 +02:00
..
2007-03-29 11:20:08 +02:00
2007-05-17 19:38:34 +03:00
2007-06-16 13:05:07 +05:00
2007-05-30 10:56:18 +03:00
2007-10-04 12:09:22 +05:00
2007-05-24 15:35:43 +05:00
2007-10-04 12:09:22 +05:00
2007-10-04 12:09:22 +05:00
2007-10-04 12:09:22 +05:00
2007-10-04 12:09:22 +05:00
2007-07-23 23:35:43 -07:00
2007-06-28 16:03:01 -07:00
2007-01-03 03:35:57 +04:00
2007-07-06 11:35:10 -07:00
2007-07-06 11:35:10 -07:00
2007-11-05 18:23:55 +04:00
2007-11-24 15:02:29 +04:00
2007-07-23 23:35:43 -07:00
2007-06-07 20:25:22 +02:00
2007-02-23 21:13:21 +03:00
2007-07-11 18:45:35 -07:00
2007-02-07 14:22:19 -08:00
2007-07-06 03:43:23 +05:00
2007-11-02 13:40:34 +03:00
2007-08-31 16:59:07 +05:00
2007-08-13 15:46:11 +02:00
2007-03-21 09:13:05 +01:00
2007-03-29 11:20:08 +02:00
2007-02-21 19:38:40 +02:00
2007-06-17 22:04:01 +02:00
2007-11-20 20:15:20 +04:00
2007-06-21 16:55:52 +02:00
2007-02-08 15:53:14 +01:00
2007-05-24 15:35:43 +05:00
2007-05-31 17:30:56 +05:00
2007-11-18 00:02:55 +04:00
2007-09-24 12:42:44 +02:00
2007-10-16 11:16:31 -06:00
2007-06-06 18:55:21 +05:00
2007-04-17 12:32:01 +02:00
2007-01-18 15:28:45 +04:00
2006-12-04 14:29:51 +02:00
2007-03-29 09:08:30 +05:00
2007-06-03 15:56:48 +04:00
2007-04-23 17:15:51 +03:00