summaryrefslogtreecommitdiff
path: root/mysql-test/t/ndb_update.test
diff options
context:
space:
mode:
authormskold@mysql.com <>2004-11-28 22:28:36 +0100
committermskold@mysql.com <>2004-11-28 22:28:36 +0100
commit065184dac371180cd1da39e993e09b99ce5c2ef1 (patch)
tree3f49d173331a34d3370c6bb19e1507b62acc3252 /mysql-test/t/ndb_update.test
parent989721d12f6c2a6b724c9010912be4b6d04a1ccb (diff)
downloadmariadb-git-065184dac371180cd1da39e993e09b99ce5c2ef1.tar.gz
Fix for Bug #6794 Wrong outcome of update operation of ndb table
Diffstat (limited to 'mysql-test/t/ndb_update.test')
-rw-r--r--mysql-test/t/ndb_update.test22
1 files changed, 22 insertions, 0 deletions
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;