Skip to content
Permalink
Browse files
MDEV-14983 Wrong error message with SET sql_mode=sha2(ucs2_value)
The problem was fixed earlier. Adding an MTR test only.
  • Loading branch information
abarkov committed Oct 24, 2022
1 parent 68fb05c commit 28d6f6a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
@@ -6391,3 +6391,14 @@ DEALLOCATE PREPARE stmt;
#
# End of 10.2 tests
#
#
# Start of 10.3 tests
#
#
# MDEV-14983 Wrong error message with SET sql_mode=sha2(ucs2_value)
#
SET sql_mode=sha2(CONVERT('a' USING ucs2),0);
ERROR 42000: Variable 'sql_mode' can't be set to the value of '022a6979e6dab7aa5ae4c3e5e45f7e977112a7e63593820dbec1ec738a24f93c'
#
# End of 10.3 tests
#
@@ -1094,3 +1094,18 @@ DEALLOCATE PREPARE stmt;
--echo #
--echo # End of 10.2 tests
--echo #

--echo #
--echo # Start of 10.3 tests
--echo #

--echo #
--echo # MDEV-14983 Wrong error message with SET sql_mode=sha2(ucs2_value)
--echo #

--error ER_WRONG_VALUE_FOR_VAR
SET sql_mode=sha2(CONVERT('a' USING ucs2),0);

--echo #
--echo # End of 10.3 tests
--echo #

0 comments on commit 28d6f6a

Please sign in to comment.