summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <joreland@mysql.com>2004-12-01 10:13:18 +0100
committerunknown <joreland@mysql.com>2004-12-01 10:13:18 +0100
commite4dbc32f632a85c0668d999a19226d53b413fc95 (patch)
tree01e7bf3cd68ccbb73525bbd4a65fc56b2a640cbf
parent62e7f1cae96c6f9f1c65bb19209776174549a352 (diff)
downloadmariadb-git-e4dbc32f632a85c0668d999a19226d53b413fc95.tar.gz
testcase for bug#6871, ndb, replace with collations
mysql-test/r/ndb_charset.result: testcase for bug#6871 mysql-test/t/ndb_charset.test: testcase for bug#6871
-rw-r--r--mysql-test/r/ndb_charset.result10
-rw-r--r--mysql-test/t/ndb_charset.test10
2 files changed, 20 insertions, 0 deletions
diff --git a/mysql-test/r/ndb_charset.result b/mysql-test/r/ndb_charset.result
index 501bec99ea3..00bc36a7c0d 100644
--- a/mysql-test/r/ndb_charset.result
+++ b/mysql-test/r/ndb_charset.result
@@ -189,3 +189,13 @@ p a
5 aaa
6 AAA
drop table t1;
+create table t1 (
+a varchar(10) primary key
+) engine=ndb;
+insert into t1 values ('jonas % ');
+replace into t1 values ('jonas % ');
+replace into t1 values ('jonas % ');
+select * from t1;
+a
+jonas %
+drop table t1;
diff --git a/mysql-test/t/ndb_charset.test b/mysql-test/t/ndb_charset.test
index f1ec0485e12..1b9e7e8bfcc 100644
--- a/mysql-test/t/ndb_charset.test
+++ b/mysql-test/t/ndb_charset.test
@@ -157,3 +157,13 @@ select * from t1 where a = 'AaA' order by p;
# 6
select * from t1 where a = 'AAA' order by p;
drop table t1;
+
+# bug
+create table t1 (
+ a varchar(10) primary key
+) engine=ndb;
+insert into t1 values ('jonas % ');
+replace into t1 values ('jonas % ');
+replace into t1 values ('jonas % ');
+select * from t1;
+drop table t1;