diff options
author | Alexander Barkov <bar@mariadb.com> | 2018-05-30 15:22:58 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2018-05-30 15:22:58 +0400 |
commit | 3ceb4a54a178d3e92529b4be16e866e18fd15218 (patch) | |
tree | 9f1c1dc04edf2782ff163fefe0bc1ff6784d1b80 /mysql-test/main/varbinary.result | |
parent | d4da8e7c020fca304c202510b6495e9777cc9b22 (diff) | |
download | mariadb-git-3ceb4a54a178d3e92529b4be16e866e18fd15218.tar.gz |
MDEV-16325 CREATE..SELECT..UNION creates a wrong field type for old varchar
- Adding Type_handler::traditional_merge_field_type()
- Removing real_type_to_type(), field_merge_type()
- Making Type_handler_var_string to merge as VARCHAR
- Additionally, fixing Field_string::print() to add the "/*old*/"
comment into the data type for the old VARCHAR.
This is similar to what MDEV-8267 earlier did for old DECIMAL.
- Adding tests
Diffstat (limited to 'mysql-test/main/varbinary.result')
-rw-r--r-- | mysql-test/main/varbinary.result | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mysql-test/main/varbinary.result b/mysql-test/main/varbinary.result index 58cab5ad1ca..3a182e74692 100644 --- a/mysql-test/main/varbinary.result +++ b/mysql-test/main/varbinary.result @@ -82,8 +82,8 @@ drop table t1; show create table t1; Table Create Table t1 CREATE TABLE `t1` ( - `a` varbinary(255) DEFAULT NULL, - `b` varchar(255) DEFAULT NULL + `a` varbinary(255)/*old*/ DEFAULT NULL, + `b` varchar(255)/*old*/ DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1 select length(a), length(b) from t1; length(a) length(b) |