diff options
author | unknown <bar@bar.intranet.mysql.r18.ru> | 2004-03-26 16:11:46 +0400 |
---|---|---|
committer | unknown <bar@bar.intranet.mysql.r18.ru> | 2004-03-26 16:11:46 +0400 |
commit | 3eff43162ba3136ecd305534f1e9d7cc779ce301 (patch) | |
tree | c8c034c5ee2087b4b6a01f36456f4ca2bd8d20dc /mysql-test/t | |
parent | c1e76fc06051f7f061f40d44e2b846ab04fdabfd (diff) | |
download | mariadb-git-3eff43162ba3136ecd305534f1e9d7cc779ce301.tar.gz |
1. New data types, from the user point of view:
BINARY(N) and VARBIBARY(N)
2. More 4.0 compatibility and more BINARY keyword consistency:
2a. CREATE TABLE a (a CHAR(N) BINARY)
is now synonym for
CREATE TABLE a (a CHAR(N) COLLATE xxxx_bin)
2b. SELECT BINARY x
is still synonin for
SELECT x COLLATE xxxxx_bin.
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/alter_table.test | 2 | ||||
-rw-r--r-- | mysql-test/t/cast.test | 4 | ||||
-rw-r--r-- | mysql-test/t/range.test | 2 | ||||
-rw-r--r-- | mysql-test/t/type_blob.test | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/mysql-test/t/alter_table.test b/mysql-test/t/alter_table.test index 39c84eceb94..9235496b45c 100644 --- a/mysql-test/t/alter_table.test +++ b/mysql-test/t/alter_table.test @@ -193,7 +193,7 @@ insert into t1 values ('ΤΕΣΤ'); select a,hex(a) from t1; alter table t1 change a a char(10) character set cp1251; select a,hex(a) from t1; -alter table t1 change a a char(10) binary; +alter table t1 change a a binary(10); select a,hex(a) from t1; alter table t1 change a a char(10) character set cp1251; select a,hex(a) from t1; diff --git a/mysql-test/t/cast.test b/mysql-test/t/cast.test index fab35bb334a..e2deb792d47 100644 --- a/mysql-test/t/cast.test +++ b/mysql-test/t/cast.test @@ -19,8 +19,8 @@ select CONVERT("2004-01-22 21:45:33",DATE); select CONVERT(DATE "2004-01-22 21:45:33" USING latin1); select CONVERT(DATE "2004-01-22 21:45:33",CHAR); select CONVERT(DATE "2004-01-22 21:45:33",CHAR(4)); -select CONVERT(DATE "2004-01-22 21:45:33",CHAR(4) BINARY); -select CAST(DATE "2004-01-22 21:45:33" AS CHAR(4) BINARY); +select CONVERT(DATE "2004-01-22 21:45:33",BINARY(4)); +select CAST(DATE "2004-01-22 21:45:33" AS BINARY(4)); # # Character set convertion diff --git a/mysql-test/t/range.test b/mysql-test/t/range.test index 642dac471da..51b1f34ee79 100644 --- a/mysql-test/t/range.test +++ b/mysql-test/t/range.test @@ -118,7 +118,7 @@ drop table t1; CREATE TABLE t1 ( t1ID int(10) unsigned NOT NULL auto_increment, - art char(1) binary NOT NULL default '', + art binary(1) NOT NULL default '', KNR char(5) NOT NULL default '', RECHNR char(6) NOT NULL default '', POSNR char(2) NOT NULL default '', diff --git a/mysql-test/t/type_blob.test b/mysql-test/t/type_blob.test index cae64b9dd27..8c6cabd997b 100644 --- a/mysql-test/t/type_blob.test +++ b/mysql-test/t/type_blob.test @@ -16,7 +16,7 @@ drop table if exists t1,t2,t3,t4,t5,t6,t7; CREATE TABLE t1 (a blob, b text, c blob(250), d text(70000), e text(70000000)); show columns from t1; -CREATE TABLE t2 (a char(257), b varchar(70000) binary, c varchar(70000000)); +CREATE TABLE t2 (a char(257), b varbinary(70000), c varchar(70000000)); show columns from t2; create table t3 (a long, b long byte); show create TABLE t3; @@ -62,7 +62,7 @@ drop table t1; # # test of blob, text, char and char binary # -create table t1 (t text,c char(10),b blob, d char(10) binary); +create table t1 (t text,c char(10),b blob, d binary(10)); insert into t1 values (NULL,NULL,NULL,NULL); insert into t1 values ("","","",""); insert into t1 values ("hello","hello","hello","hello"); |