mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
after merge fixes
This commit is contained in:
@ -497,9 +497,9 @@ drop database mysqltest;
|
|||||||
select database();
|
select database();
|
||||||
database()
|
database()
|
||||||
NULL
|
NULL
|
||||||
select database();
|
select database(), user();
|
||||||
database()
|
database() user()
|
||||||
NULL
|
NULL mysqltest_1@localhost
|
||||||
use test;
|
use test;
|
||||||
create table t1 (a int, index `primary` (a));
|
create table t1 (a int, index `primary` (a));
|
||||||
ERROR 42000: Incorrect index name 'primary'
|
ERROR 42000: Incorrect index name 'primary'
|
||||||
@ -563,3 +563,11 @@ select * from t2;
|
|||||||
b
|
b
|
||||||
1
|
1
|
||||||
drop table t1,t2;
|
drop table t1,t2;
|
||||||
|
create table t1 (a int);
|
||||||
|
create table t1 select * from t1;
|
||||||
|
ERROR HY000: You can't specify target table 't1' for update in FROM clause
|
||||||
|
create table t2 union = (t1) select * from t1;
|
||||||
|
ERROR HY000: You can't specify target table 't1' for update in FROM clause
|
||||||
|
flush tables with read lock;
|
||||||
|
unlock tables;
|
||||||
|
drop table t1;
|
||||||
|
@ -403,8 +403,11 @@ drop database mysqltest;
|
|||||||
select database();
|
select database();
|
||||||
|
|
||||||
# Connect without a database
|
# Connect without a database
|
||||||
connect (user4,localhost,mysqltest_1,,*NO-ONE*);
|
connect (user1,localhost,mysqltest_1,,*NO-ONE*);
|
||||||
select database();
|
connection user1;
|
||||||
|
select database(), user();
|
||||||
|
connection default;
|
||||||
|
disconnect user1;
|
||||||
|
|
||||||
#
|
#
|
||||||
# Test for Bug 856 'Naming a key "Primary" causes trouble'
|
# Test for Bug 856 'Naming a key "Primary" causes trouble'
|
||||||
|
Reference in New Issue
Block a user