diff options
author | unknown <mskold@mysql.com> | 2004-08-18 19:13:39 +0200 |
---|---|---|
committer | unknown <mskold@mysql.com> | 2004-08-18 19:13:39 +0200 |
commit | 86fdb8b977a57d074d245df4b5a9df4a79b42394 (patch) | |
tree | 764eb99748f0aa1f80e444f8414e9f863d704904 /mysql-test/r/ndb_transaction.result | |
parent | 2b6b61642b73095385f47dbc37ffbd7da4a85b1d (diff) | |
download | mariadb-git-86fdb8b977a57d074d245df4b5a9df4a79b42394.tar.gz |
Fix for WL#1731 Handler: multiple databases
Diffstat (limited to 'mysql-test/r/ndb_transaction.result')
-rw-r--r-- | mysql-test/r/ndb_transaction.result | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/mysql-test/r/ndb_transaction.result b/mysql-test/r/ndb_transaction.result index 405cd1d776a..18cbf3e731b 100644 --- a/mysql-test/r/ndb_transaction.result +++ b/mysql-test/r/ndb_transaction.result @@ -1,4 +1,5 @@ DROP TABLE IF EXISTS t1,t2,t3,t4,t5,t6,t7; +drop database if exists test2; CREATE TABLE t1 ( pk1 INT NOT NULL PRIMARY KEY, attr1 INT NOT NULL @@ -206,3 +207,51 @@ begin; drop table t2; drop table t3; drop table t4; +CREATE TABLE t1 ( +pk1 INT NOT NULL PRIMARY KEY, +attr1 INT NOT NULL +) ENGINE=ndbcluster; +create database test2; +use test2; +CREATE TABLE t2 ( +a bigint unsigned NOT NULL PRIMARY KEY, +b int unsigned not null, +c int unsigned +) engine=ndbcluster; +begin; +insert into test.t1 values(1,1); +insert into t2 values(1,1,1); +insert into test.t1 values(2,2); +insert into t2 values(2,2,2); +select count(*) from test.t1; +count(*) +2 +select count(*) from t2; +count(*) +2 +select * from test.t1 where pk1 = 1; +pk1 attr1 +1 1 +select * from t2 where a = 1; +a b c +1 1 1 +select test.t1.attr1 +from test.t1, test.t1 as t1x where test.t1.pk1 = t1x.pk1 + 1; +attr1 +2 +select t2.a +from t2, t2 as t2x where t2.a = t2x.a + 1; +a +2 +select test.t1.pk1, a from test.t1,t2 where b > test.t1.attr1; +pk1 a +1 2 +rollback; +select count(*) from test.t1; +count(*) +0 +select count(*) from t2; +count(*) +0 +drop table test.t1, t2; +drop database test2; |