1
0
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.
This commit is contained in:
svoj@mysql.com/june.mysql.com
2008-02-19 18:16:17 +04:00
parent b620694ba3
commit 921e1cc4bb
3 changed files with 10 additions and 0 deletions

View File

@ -225,4 +225,7 @@ select min(a) from t1 group by inet_ntoa(a);
min(a)
-2
drop table t1;
SELECT NAME_CONST('var', 'value') COLLATE latin1_general_cs;
NAME_CONST('var', 'value') COLLATE latin1_general_cs
value
End of 5.0 tests