mirror of
https://github.com/MariaDB/server.git
synced 2025-05-04 06:05:05 +03:00
Simple misc cases - warnings
This commit is contained in:
parent
e3494520c9
commit
db67a2ee61
@ -1,4 +1,4 @@
|
|||||||
drop table if exists t1,t2;
|
drop table if exists t1,t2,t3;
|
||||||
create table t1 (b char(0));
|
create table t1 (b char(0));
|
||||||
insert into t1 values (""),(null);
|
insert into t1 values (""),(null);
|
||||||
select * from t1;
|
select * from t1;
|
||||||
|
@ -13,3 +13,20 @@ set SQL_WARNINGS=0;
|
|||||||
drop temporary table if exists not_exists;
|
drop temporary table if exists not_exists;
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1051 Unknown table 'not_exists'
|
Note 1051 Unknown table 'not_exists'
|
||||||
|
drop table if exists not_exists_table;
|
||||||
|
Warnings:
|
||||||
|
Note 1051 Unknown table 'not_exists_table'
|
||||||
|
show warnings limit 1;
|
||||||
|
Level Code Message
|
||||||
|
Note 1051 Unknown table 'not_exists_table'
|
||||||
|
drop database if exists not_exists_db;
|
||||||
|
Warnings:
|
||||||
|
Note 1008 Can't drop database 'not_exists_db'. Database doesn't exist
|
||||||
|
show count(*) warnings;
|
||||||
|
@@session.warning_count
|
||||||
|
1
|
||||||
|
create table t1(id int);
|
||||||
|
create table if not exists t1(id int);
|
||||||
|
select @@warning_count;
|
||||||
|
@@warning_count
|
||||||
|
0
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
--disable_warnings
|
--disable_warnings
|
||||||
drop table if exists t1,t2;
|
drop table if exists t1,t2,t3;
|
||||||
--enable_warnings
|
--enable_warnings
|
||||||
|
|
||||||
create table t1 (b char(0));
|
create table t1 (b char(0));
|
||||||
|
@ -19,3 +19,10 @@ set SQL_WARNINGS=0;
|
|||||||
# Test other warnings
|
# Test other warnings
|
||||||
|
|
||||||
drop temporary table if exists not_exists;
|
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user