2000-12-28 03:56:38 +02:00
|
|
|
|
#
|
|
|
|
|
# Test some warnings
|
|
|
|
|
#
|
2003-01-06 01:48:59 +02:00
|
|
|
|
--disable-warnings
|
2002-08-30 21:32:59 +03:00
|
|
|
|
drop table if exists t1;
|
2003-01-06 01:48:59 +02:00
|
|
|
|
--enable-warnings
|
|
|
|
|
|
2000-12-28 03:56:38 +02:00
|
|
|
|
create table t1 (a int);
|
|
|
|
|
insert into t1 values (1);
|
|
|
|
|
insert into t1 values ("hej");
|
|
|
|
|
insert into t1 values ("hej"),("d<>");
|
|
|
|
|
set SQL_WARNINGS=1;
|
|
|
|
|
insert into t1 values ("hej");
|
|
|
|
|
insert into t1 values ("hej"),("d<>");
|
|
|
|
|
drop table t1;
|
|
|
|
|
set SQL_WARNINGS=0;
|
2003-01-06 01:48:59 +02:00
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Test other warnings
|
|
|
|
|
|
|
|
|
|
drop temporary table if exists not_exists;
|