diff options
author | unknown <mskold@mysql.com> | 2004-11-28 22:28:36 +0100 |
---|---|---|
committer | unknown <mskold@mysql.com> | 2004-11-28 22:28:36 +0100 |
commit | f0af808fccf656febcfb884047aa465bd5b005be (patch) | |
tree | 3f49d173331a34d3370c6bb19e1507b62acc3252 /mysql-test | |
parent | 5607539c5b5dee4809e8e370527d3542387e27a4 (diff) | |
download | mariadb-git-f0af808fccf656febcfb884047aa465bd5b005be.tar.gz |
Fix for Bug #6794 Wrong outcome of update operation of ndb table
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/ndb_update.result | 12 | ||||
-rw-r--r-- | mysql-test/t/ndb_update.test | 22 |
2 files changed, 34 insertions, 0 deletions
diff --git a/mysql-test/r/ndb_update.result b/mysql-test/r/ndb_update.result new file mode 100644 index 00000000000..829e722faaa --- /dev/null +++ b/mysql-test/r/ndb_update.result @@ -0,0 +1,12 @@ +DROP TABLE IF EXISTS t1; +CREATE TABLE t1 ( +pk1 INT NOT NULL PRIMARY KEY, +b INT NOT NULL, +c INT NOT NULL +) ENGINE=ndbcluster; +INSERT INTO t1 VALUES (0, 0, 0),(1,1,1); +UPDATE t1 set b = c; +select * from t1 order by pk1; +pk1 b c +0 0 0 +1 1 1 diff --git a/mysql-test/t/ndb_update.test b/mysql-test/t/ndb_update.test new file mode 100644 index 00000000000..186e4a99ad3 --- /dev/null +++ b/mysql-test/t/ndb_update.test @@ -0,0 +1,22 @@ +-- source include/have_ndb.inc + +--disable_warnings +DROP TABLE IF EXISTS t1; +--enable_warnings + +# +# Basic test of INSERT in NDB +# + +# +# Create a normal table with primary key +# +CREATE TABLE t1 ( + pk1 INT NOT NULL PRIMARY KEY, + b INT NOT NULL, + c INT NOT NULL +) ENGINE=ndbcluster; + +INSERT INTO t1 VALUES (0, 0, 0),(1,1,1); +UPDATE t1 set b = c; +select * from t1 order by pk1; |