~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/connect.test

Rename of handler to Cursor.  You would not believe how long I have wanted
to do that.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# with right and wrong password, with and without database
3
3
# Unfortunately the check is incomplete as we can't connect without database
4
4
 
 
5
# check that CSV engine was compiled in, as the test relies on the presence
 
6
# of the log tables (which are CSV-based). By connect mysql; show tables;
 
7
--source include/have_csv.inc
 
8
 
5
9
--disable_warnings
6
10
drop table if exists t1,t2;
7
11
--enable_warnings
15
19
show tables;
16
20
 
17
21
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
18
 
--error ER_BAD_DB_ERROR
 
22
--error 1049
19
23
connect (fail_con,localhost,root,z,test2);
20
24
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
21
25
connect (fail_con,localhost,root,z,);
30
34
show tables;
31
35
 
32
36
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
33
 
--error ER_BAD_DB_ERROR
 
37
--error 1049
34
38
connect (fail_con,localhost,test,,test2);
35
39
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
36
 
--error ER_BAD_DB_ERROR
 
40
--error 1049
37
41
connect (fail_con,localhost,test,,"");
38
42
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
39
 
--error ER_BAD_DB_ERROR
 
43
--error 1049
40
44
connect (fail_con,localhost,test,zorro,test2);
41
45
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
42
46
connect (fail_con,localhost,test,zorro,);
45
49
 
46
50
 
47
51
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
48
 
--error ER_BAD_DB_ERROR
 
52
--error 1049
49
53
connect (fail_con,localhost,test,,test2);
50
54
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
51
55
connect (fail_con,localhost,test,,);
52
56
--disconnect fail_con
53
57
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
54
 
--error ER_BAD_DB_ERROR
 
58
--error 1049
55
59
connect (fail_con,localhost,test,zorro,test2);
56
60
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
57
61
connect (fail_con,localhost,test,zorro,);
69
73
set @id := 1;
70
74
delete from t1 where id like @id;
71
75
disconnect con7;
72
 
--sleep 0.5
 
76
--sleep 5
73
77
connection default;
74
78
drop table t1;
75
79