~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/warnings.result

  • Committer: Brian Aker
  • Date: 2010-05-18 22:31:57 UTC
  • mto: This revision was merged to the branch mainline in revision 1540.
  • Revision ID: brian@gaz-20100518223157-k0i4yxv6t03yrwyk
JoinCache rename.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
Note    1051    Unknown table 'not_exists_table'
44
44
drop database if exists not_exists_db;
45
45
Warnings:
46
 
Note    1008    Can't drop schema 'not_exists_db'; schema doesn't exist
 
46
Note    1008    Can't drop database 'not_exists_db'; database doesn't exist
47
47
show count(*) warnings;
48
48
@@session.warning_count
49
49
1
56
56
1
57
57
drop table t1;
58
58
create table t1(a int, b int not null, c date, d char(5));
59
 
load data infile 'DRIZZLETEST_VARDIR/std_data_ln/warnings_loaddata.dat' into table t1 fields terminated by ',';
 
59
load data infile '../std_data_ln/warnings_loaddata.dat' into table t1 fields terminated by ',';
60
60
ERROR 22004: Column set to default value; NULL supplied to NOT NULL column 'b' at row 2
61
61
select @@warning_count;
62
62
@@warning_count
152
152
set @c = repeat(' ', 256);
153
153
set @q = repeat('q', 256);
154
154
insert into t1 values(@c, @c, @c);
155
 
ERROR 22001: Data too long for column 'c_char' at row 1
 
155
Warnings:
 
156
Note    1265    Data truncated for column 'c_char' at row 1
 
157
Note    1265    Data truncated for column 'c_varchar' at row 1
156
158
show warnings;
157
159
Level   Code    Message
158
 
Error   1406    Data too long for column 'c_char' at row 1
 
160
Note    1265    Data truncated for column 'c_char' at row 1
 
161
Note    1265    Data truncated for column 'c_varchar' at row 1
159
162
insert into t1 values(@q, NULL, NULL);
160
163
ERROR 22001: Data too long for column 'c_char' at row 1
161
164
insert into t1 values(NULL, @q, NULL);