add tests
This commit is contained in:

committed by
Markus Mäkelä

parent
dbfd631fed
commit
8c6ca38a8a
43
maxscale-system-test/bug670_sql.h
Normal file
43
maxscale-system-test/bug670_sql.h
Normal file
@ -0,0 +1,43 @@
|
||||
#ifndef BUG670_SQL_H
|
||||
#define BUG670_SQL_H
|
||||
|
||||
const char * bug670_sql =
|
||||
"set autocommit=0;\
|
||||
use mysql;\
|
||||
set autocommit=1;\
|
||||
use test;\
|
||||
set autocommit=0;\
|
||||
use mysql;\
|
||||
set autocommit=1;\
|
||||
select user,host from user;\
|
||||
set autocommit=0;\
|
||||
use fakedb;\
|
||||
use test;\
|
||||
use mysql;\
|
||||
use dontuse;\
|
||||
use mysql;\
|
||||
drop table if exists t1;\
|
||||
commit;\
|
||||
use test;\
|
||||
use mysql;\
|
||||
set autocommit=1;\
|
||||
create table t1(id integer primary key);\
|
||||
insert into t1 values(5);\
|
||||
use test;\
|
||||
use mysql;\
|
||||
select user from user;\
|
||||
set autocommit=0;\
|
||||
set autocommit=1;\
|
||||
set autocommit=0;\
|
||||
insert into mysql.t1 values(7);\
|
||||
use mysql;\
|
||||
rollback work;\
|
||||
commit;\
|
||||
delete from mysql.t1 where id=7;\
|
||||
insert into mysql.t1 values(7);\
|
||||
select host,user from mysql.user;\
|
||||
set autocommit=1;\
|
||||
delete from mysql.t1 where id = 7; \
|
||||
select 1 as \"endof cycle\" from dual;\n";
|
||||
|
||||
#endif // BUG670_SQL_H
|
Reference in New Issue
Block a user