summaryrefslogtreecommitdiff
path: root/mysql-test/r/warnings.result
blob: f2a105827da5e25cc8d39e36d69e84f42e0515d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
drop table if exists t1;
Warnings:
Note	1051	Unknown table 't1'
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;
drop temporary table if exists not_exists;
Warnings:
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