1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-03 05:41:09 +03:00
Files
mariadb/mysql-test/r
unknown d50caace5f Fixed bug #29611.
If a primary key is defined over column c of enum type then 
the EXPLAIN command for a look-up query of the form
  SELECT * FROM t WHERE c=0
said that the query was with an impossible where condition though the
query correctly returned non-empty result set when the table indeed 
contained rows with error empty strings for column c. 

This kind of misbehavior was due to a bug in the function 
Field_enum::store(longlong,bool) that erroneously returned 1 if
the the value to be stored was equal to 0. 
Note that the method 
Field_enum::store(const char *from,uint length,CHARSET_INFO *cs)
correctly returned 0 if a value of the error empty string 
was stored. 


mysql-test/r/type_enum.result:
  Added a test case for bug #29661.
mysql-test/t/type_enum.test:
  Added a test case for bug #29661.
sql/field.cc:
  Fixed bug #29611.
  If a primary key was defined over column c of enum type then 
  the EXPLAIN command for a look-up query of the form
    SELECT * FROM t WHERE c=0
  said that the query was with an impossible where condition though the
  query correctly returned non-empty result set when the table indeed 
  contained rows with error empty strings for column c. 
  
  This kind of misbehavior was due to a bug in the function 
  Field_enum::store(longlong,bool) that erroneously returned 1 if
  the the value to be stored was equal to 0. 
  Note that the method 
  Field_enum::store(const char *from,uint length,CHARSET_INFO *cs)
  correctly returned 0 if a value of the error empty string 
  was stored.
2007-07-22 18:26:16 -07:00
..
2007-03-29 11:20:08 +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-05-24 15:35:43 +05:00
2007-06-30 02:09:50 +05:00
2007-02-23 18:49:41 +02:00
2007-06-28 16:03:01 -07:00
2007-06-28 13:36:26 -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-06-17 11:43:49 -07:00
2007-07-05 18:24:48 +03:00
2007-05-12 00:46:07 +04:00
2007-06-07 20:25:22 +02:00
2007-02-23 21:13:21 +03:00
2006-11-15 10:23:27 +01:00
2007-03-29 11:20:08 +02:00
2007-06-24 01:20:14 +05: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-06-21 02:11:28 +05:00
2007-07-21 04:50:11 +05: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-07-02 01:28:20 +04:00
2007-06-29 22:05:43 +04:00
2006-11-15 10:23:27 +01:00
2007-06-21 16:55:52 +02:00
2006-11-15 10:23:27 +01:00
2007-02-08 15:53:14 +01:00
2007-05-24 15:35:43 +05:00
2006-11-15 10:23:27 +01:00
2007-05-31 17:30:56 +05:00
2007-04-10 19:08:08 +03: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
2007-07-22 18:26:16 -07:00
2007-07-12 00:03:08 +05: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-07-04 21:12:07 -07:00
2007-04-23 17:15:51 +03:00