mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
BUG#34289 - Incorrect NAME_CONST substitution in stored procedures
breaks replication NAME_CONST() didn't replicate constant character set and collation correctly. With this fix NAME_CONST() inherits collation from the value argument. mysql-test/r/func_misc.result: A test case for BUG#34289. mysql-test/t/func_misc.test: A test case for BUG#34289. sql/item.cc: Inherit collation from value argument.
This commit is contained in:
@ -237,5 +237,11 @@ insert into t1 values (-1), (-2);
|
||||
select min(a) from t1 group by inet_ntoa(a);
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# BUG#34289 - Incorrect NAME_CONST substitution in stored procedures breaks
|
||||
# replication
|
||||
#
|
||||
SELECT NAME_CONST('var', 'value') COLLATE latin1_general_cs;
|
||||
|
||||
--echo End of 5.0 tests
|
||||
|
||||
|
Reference in New Issue
Block a user