mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
28 lines
615 B
Text
28 lines
615 B
Text
#
|
|
# Test some warnings
|
|
#
|
|
--disable-warnings
|
|
drop table if exists t1;
|
|
--enable-warnings
|
|
|
|
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;
|
|
|
|
#
|
|
# Test other warnings
|
|
|
|
drop temporary table if exists not_exists;
|
|
drop table if exists not_exists_table;
|
|
show warnings limit 1;
|
|
drop database if exists not_exists_db;
|
|
show count(*) warnings;
|
|
create table t1(id int);
|
|
create table if not exists t1(id int);
|
|
select @@warning_count;
|