mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
12040a9dea
mysql-test/r/ndb_update.result: make sure to drop table at end of test mysql-test/t/ndb_update.test: make sure to drop table at end of test
24 lines
400 B
Text
24 lines
400 B
Text
-- 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, 1),(1,1,2),(2,2,3);
|
|
UPDATE t1 set b = c;
|
|
select * from t1 order by pk1;
|
|
|
|
drop table t1;
|