diff options
author | Alexander Barkov <bar@mariadb.com> | 2019-10-01 22:30:28 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2019-10-01 22:30:28 +0400 |
commit | 4b5a76741eced5b3c39e8438f45d979136d58a33 (patch) | |
tree | 2fabfbd20e9ede2745e03ada59d65db859dfaa80 /mysql-test/main/ctype_latin1.result | |
parent | c06397f615e6ad088d93db93a6c596fc7cd92ec0 (diff) | |
download | mariadb-git-4b5a76741eced5b3c39e8438f45d979136d58a33.tar.gz |
MDEV-20712 Wrong data type for CAST(@a AS BINARY) for a numeric variable
Diffstat (limited to 'mysql-test/main/ctype_latin1.result')
-rw-r--r-- | mysql-test/main/ctype_latin1.result | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mysql-test/main/ctype_latin1.result b/mysql-test/main/ctype_latin1.result index a4925af69ae..4362ed44699 100644 --- a/mysql-test/main/ctype_latin1.result +++ b/mysql-test/main/ctype_latin1.result @@ -8889,3 +8889,23 @@ DROP TABLE t1; # # End of 10.2 tests # +# +# Start of 10.5 tests +# +# +# MDEV-20712 Wrong data type for CAST(@a AS BINARY) for a numeric variable +# +SET NAMES latin1; +SET @a=2; +CREATE OR REPLACE TABLE t1 AS SELECT CAST(1 AS BINARY), CAST(@a AS BINARY), CAST(@b:=3 AS BINARY); +SHOW CREATE TABLE t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `CAST(1 AS BINARY)` varbinary(1) DEFAULT NULL, + `CAST(@a AS BINARY)` varbinary(20) DEFAULT NULL, + `CAST(@b:=3 AS BINARY)` varbinary(1) DEFAULT NULL +) ENGINE=MyISAM DEFAULT CHARSET=latin1 +DROP TABLE t1; +# +# End of 10.5 tests +# |