diff options
author | unknown <svoj@mysql.com/june.mysql.com> | 2008-02-19 18:16:17 +0400 |
---|---|---|
committer | unknown <svoj@mysql.com/june.mysql.com> | 2008-02-19 18:16:17 +0400 |
commit | f802cd51238c7842b789e49ba27d3c119ebb8ce3 (patch) | |
tree | 5da3619ac6e455f0f7ea21af3e87a903cfafa055 /mysql-test/r/func_misc.result | |
parent | 40f7e296701c9278edfbad970ad90bfd9a33454b (diff) | |
download | mariadb-git-f802cd51238c7842b789e49ba27d3c119ebb8ce3.tar.gz |
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.
Diffstat (limited to 'mysql-test/r/func_misc.result')
-rw-r--r-- | mysql-test/r/func_misc.result | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mysql-test/r/func_misc.result b/mysql-test/r/func_misc.result index 4f6b6d3a0d8..fa9ca3539d6 100644 --- a/mysql-test/r/func_misc.result +++ b/mysql-test/r/func_misc.result @@ -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 |