summaryrefslogtreecommitdiff
path: root/mysql-test/t/key_primary.test
diff options
context:
space:
mode:
authormonty@donna.mysql.com <>2000-12-28 03:56:38 +0200
committermonty@donna.mysql.com <>2000-12-28 03:56:38 +0200
commitc0f40d14cc36f56f5b4dba288583acd345429e4e (patch)
treec27e400395741740f2e230395445236b38db27c1 /mysql-test/t/key_primary.test
parent361067e9150f7fa57d5b2ac722ed55df9c14cc53 (diff)
downloadmariadb-git-c0f40d14cc36f56f5b4dba288583acd345429e4e.tar.gz
Added support for hex strings to mysqlimport
A lot of new tests to mysqltest Fixed bug with BDB tables and autocommit
Diffstat (limited to 'mysql-test/t/key_primary.test')
-rw-r--r--mysql-test/t/key_primary.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/t/key_primary.test b/mysql-test/t/key_primary.test
new file mode 100644
index 00000000000..75dded5d667
--- /dev/null
+++ b/mysql-test/t/key_primary.test
@@ -0,0 +1,14 @@
+#
+# test of primary key conversions
+#
+
+create table t1 (t1 char(3) primary key);
+insert into t1 values("ABC");
+insert into t1 values("ABA");
+insert into t1 values("AB%");
+select * from t1 where t1="ABC";
+select * from t1 where t1="ABCD";
+select * from t1 where t1 like "a_\%";
+describe select * from t1 where t1="ABC";
+describe select * from t1 where t1="ABCD";
+drop table t1;