mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
a fix (bug #10650: Bit literal case sensitivity).
mysys/charset.c: a fix (bug #10650: Bit literal case sensitivity). typo fixed.
This commit is contained in:
@ -2699,3 +2699,6 @@ id select_type table type possible_keys key key_len ref rows Extra
|
|||||||
1 SIMPLE t2 ALL NULL NULL NULL NULL 3
|
1 SIMPLE t2 ALL NULL NULL NULL NULL 3
|
||||||
1 SIMPLE t1 ALL NULL NULL NULL NULL 5 Using where
|
1 SIMPLE t1 ALL NULL NULL NULL NULL 5 Using where
|
||||||
DROP TABLE t1,t2;
|
DROP TABLE t1,t2;
|
||||||
|
select x'10' + 0, X'10' + 0, b'10' + 0, B'10' + 0;
|
||||||
|
x'10' + 0 X'10' + 0 b'10' + 0 B'10' + 0
|
||||||
|
16 16 2 2
|
||||||
|
@ -2271,3 +2271,8 @@ EXPLAIN SELECT t1.a FROM t1 INNER JOIN t2 ON t1.a=t2.a;
|
|||||||
|
|
||||||
DROP TABLE t1,t2;
|
DROP TABLE t1,t2;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug #10650
|
||||||
|
#
|
||||||
|
|
||||||
|
select x'10' + 0, X'10' + 0, b'10' + 0, B'10' + 0;
|
||||||
|
@ -97,7 +97,7 @@ static my_bool init_state_maps(CHARSET_INFO *cs)
|
|||||||
|
|
||||||
/* Special handling of hex and binary strings */
|
/* Special handling of hex and binary strings */
|
||||||
state_map[(uchar)'x']= state_map[(uchar)'X']= (uchar) MY_LEX_IDENT_OR_HEX;
|
state_map[(uchar)'x']= state_map[(uchar)'X']= (uchar) MY_LEX_IDENT_OR_HEX;
|
||||||
state_map[(uchar)'b']= state_map[(uchar)'b']= (uchar) MY_LEX_IDENT_OR_BIN;
|
state_map[(uchar)'b']= state_map[(uchar)'B']= (uchar) MY_LEX_IDENT_OR_BIN;
|
||||||
state_map[(uchar)'n']= state_map[(uchar)'N']= (uchar) MY_LEX_IDENT_OR_NCHAR;
|
state_map[(uchar)'n']= state_map[(uchar)'N']= (uchar) MY_LEX_IDENT_OR_NCHAR;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user