diff options
author | mskold@mysql.com <> | 2005-04-07 18:37:04 +0200 |
---|---|---|
committer | mskold@mysql.com <> | 2005-04-07 18:37:04 +0200 |
commit | e66eaaa2a0afd297930f7957f1765103db373492 (patch) | |
tree | 51706344431896fc3c3f558c78bcb2d19822d2c8 /mysql-test/t/ndb_basic.test | |
parent | 280fda609322846dd75564307128fcb41ee5779f (diff) | |
parent | b135b175fa47036abd4d7b110d59716ab046c2db (diff) | |
download | mariadb-git-e66eaaa2a0afd297930f7957f1765103db373492.tar.gz |
Merge
Diffstat (limited to 'mysql-test/t/ndb_basic.test')
-rw-r--r-- | mysql-test/t/ndb_basic.test | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mysql-test/t/ndb_basic.test b/mysql-test/t/ndb_basic.test index a6064f30556..1b4402c5bdd 100644 --- a/mysql-test/t/ndb_basic.test +++ b/mysql-test/t/ndb_basic.test @@ -577,3 +577,28 @@ create table t1 engine=ndb max_rows=1; drop table t1; + +# +# Test auto_increment +# + +connect (con1,localhost,,,test); +connect (con2,localhost,,,test); + +create table t1 + (counter int(64) NOT NULL auto_increment, + datavalue char(40) default 'XXXX', + primary key (counter) + ) ENGINE=ndbcluster; + +connection con1; +insert into t1 (datavalue) values ('newval'); +insert into t1 (datavalue) values ('newval'); +select * from t1 order by counter; +insert into t1 (datavalue) select datavalue from t1 where counter < 100; +select * from t1 order by counter; +connection con2; +insert into t1 (datavalue) select datavalue from t1 where counter < 100; +select * from t1 order by counter; + +drop table t1; |