summaryrefslogtreecommitdiff
path: root/mysql-test/t/warnings.test
diff options
context:
space:
mode:
authorunknown <gluh@gluh.mysql.r18.ru>2005-02-23 20:18:21 +0300
committerunknown <gluh@gluh.mysql.r18.ru>2005-02-23 20:18:21 +0300
commit262dadccf112eae2381def6e6e144da2ffa9036f (patch)
tree883347b209d106625d806b622a18cbce39b1bb78 /mysql-test/t/warnings.test
parentf443992e66f6eb32a0b841a3005f44f5ad77faff (diff)
downloadmariadb-git-262dadccf112eae2381def6e6e144da2ffa9036f.tar.gz
Fix for bug #6572: SHOW ERRORS doesn't
Diffstat (limited to 'mysql-test/t/warnings.test')
-rw-r--r--mysql-test/t/warnings.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/t/warnings.test b/mysql-test/t/warnings.test
index 4bd659606f6..23ab5aa1f05 100644
--- a/mysql-test/t/warnings.test
+++ b/mysql-test/t/warnings.test
@@ -7,6 +7,19 @@ drop table if exists t1, t2;
SET SQL_WARNINGS=1;
create table t1 (a int);
+--error 1050
+create table t1 (a int);
+show count(*) errors;
+show errors;
+show warnings;
+--error 1115
+create table t2(a int) default charset qwerty;
+show count(*) errors;
+show errors;
+--error 1064
+create table t (i);
+show count(*) errors;
+show errors;
insert into t1 values (1);
insert into t1 values ("hej");
insert into t1 values ("hej"),("då");