mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge gluh.mysql.r18.ru:/home/gluh/MySQL-MERGE/mysql-4.1
into gluh.mysql.r18.ru:/home/gluh/MySQL-MERGE/mysql-5.0 mysql-test/r/warnings.result: Auto merged mysql-test/t/warnings.test: Auto merged sql/protocol.cc: Auto merged
This commit is contained in:
@ -1,6 +1,33 @@
|
||||
drop table if exists t1, t2;
|
||||
SET SQL_WARNINGS=1;
|
||||
create table t1 (a int);
|
||||
create table t1 (a int);
|
||||
ERROR 42S01: Table 't1' already exists
|
||||
show count(*) errors;
|
||||
@@session.error_count
|
||||
1
|
||||
show errors;
|
||||
Level Code Message
|
||||
Error 1050 Table 't1' already exists
|
||||
show warnings;
|
||||
Level Code Message
|
||||
Error 1050 Table 't1' already exists
|
||||
create table t2(a int) default charset qwerty;
|
||||
ERROR 42000: Unknown character set: 'qwerty'
|
||||
show count(*) errors;
|
||||
@@session.error_count
|
||||
1
|
||||
show errors;
|
||||
Level Code Message
|
||||
Error 1115 Unknown character set: 'qwerty'
|
||||
create table t (i);
|
||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
|
||||
show count(*) errors;
|
||||
@@session.error_count
|
||||
1
|
||||
show errors;
|
||||
Level Code Message
|
||||
Error 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
|
||||
insert into t1 values (1);
|
||||
insert into t1 values ("hej");
|
||||
Warnings:
|
||||
|
Reference in New Issue
Block a user