~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysql-test/t/truncate.test

Removed/replaced a couple DBUG calls

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
select * from t1;
16
16
drop table t1;
17
17
# The following should fail
18
 
--error ER_NO_SUCH_TABLE
 
18
--error 1146
19
19
select count(*) from t1;
20
20
create temporary table t1 (n int);
21
21
insert into t1 values (1),(2),(3);
22
22
truncate table t1;
23
23
select * from t1;
24
24
drop table t1;
25
 
--error ER_NO_SUCH_TABLE
 
25
--error 1146
26
26
truncate non_existing_table;
27
27
 
28
28
#
52
52
drop table t1;
53
53
 
54
54
# End of 4.1 tests
 
55
 
 
56
# Test for Bug#5507 "TRUNCATE should work with views"
 
57
#
 
58
# when it'll be fixed, the error should become 1347
 
59
# (test.v1' is not BASE TABLE)
 
60
#
 
61
 
 
62
create table t1 (s1 int); 
 
63
insert into t1 (s1) values (1), (2), (3), (4), (5);
 
64
create view v1 as select * from t1;
 
65
--error 1146
 
66
truncate table v1;
 
67
drop view v1;
 
68
drop table t1;
 
69
 
 
70
# End of 5.0 tests
 
71