mirror of
https://github.com/MariaDB/server.git
synced 2025-11-13 21:42:58 +03:00
Merge bk-internal.mysql.com:/home/bk/mysql-4.1/
into serg.mylan:/usr/home/serg/Abk/mysql-4.1 sql/sql_select.cc: Auto merged
This commit is contained in:
@@ -840,10 +840,13 @@ set autocommit=1;
|
||||
# Bug #4089: subselect and open cursor.
|
||||
#
|
||||
|
||||
#create table t1(a int primary key, b varchar(30)) engine=bdb;
|
||||
#insert into t1 values (1,'one'), (2,'two'), (3,'three'), (4,'four');
|
||||
#create table t2 like t1;
|
||||
#insert into t2 (a, b)
|
||||
# select a, b from t1 where (a, b) in (select a, b from t1);
|
||||
#select * from t2;
|
||||
#drop table t1, t2;
|
||||
create table t1(a int primary key, b varchar(30)) engine=bdb;
|
||||
insert into t1 values (1,'one'), (2,'two'), (3,'three'), (4,'four');
|
||||
create table t2 like t1;
|
||||
insert t2 select * from t1;
|
||||
select a from t1 where a in (select a from t2);
|
||||
delete from t2;
|
||||
insert into t2 (a, b)
|
||||
select a, b from t1 where (a, b) in (select a, b from t1);
|
||||
select * from t2;
|
||||
drop table t1, t2;
|
||||
|
||||
Reference in New Issue
Block a user