mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
2b53b711d8
into mysql.com:/home/timka/mysql/src/5.0-2486-merge mysql-test/r/errors.result: Auto merged mysql-test/r/fulltext.result: Auto merged mysql-test/r/fulltext_order_by.result: Auto merged mysql-test/r/innodb.result: Auto merged mysql-test/r/join_nested.result: Auto merged mysql-test/r/subselect.result: Auto merged mysql-test/t/errors.test: Auto merged mysql-test/t/fulltext.test: Auto merged mysql-test/t/fulltext_order_by.test: Auto merged mysql-test/t/innodb.test: Auto merged mysql-test/t/join_nested.test: Auto merged mysql-test/t/subselect.test: Auto merged sql/item.cc: Auto merged sql/mysql_priv.h: Auto merged sql/sp.cc: Auto merged sql/sql_base.cc: Auto merged sql/sql_class.h: Auto merged sql/sql_delete.cc: Auto merged sql/sql_lex.cc: Auto merged sql/sql_lex.h: Auto merged sql/sql_parse.cc: Auto merged sql/sql_select.cc: Auto merged sql/sql_update.cc: Auto merged sql/sql_yacc.yy: Auto merged sql/table.h: Auto merged tests/mysql_client_test.c: Auto merged sql/sql_insert.cc: merge WL#2486 sql/sql_show.cc: merge WL#2486
44 lines
907 B
Text
44 lines
907 B
Text
#
|
|
# Test some error conditions
|
|
#
|
|
|
|
--disable_warnings
|
|
drop table if exists t1;
|
|
--enable_warnings
|
|
--error 1146
|
|
insert into t1 values(1);
|
|
--error 1146
|
|
delete from t1;
|
|
--error 1146
|
|
update t1 set a=1;
|
|
create table t1 (a int);
|
|
--error 1054
|
|
select count(test.t1.b) from t1;
|
|
--error 1054
|
|
select count(not_existing_database.t1) from t1;
|
|
--error 1054
|
|
select count(not_existing_database.t1.a) from t1;
|
|
--error 1044,1146
|
|
select count(not_existing_database.t1.a) from not_existing_database.t1;
|
|
--error 1054
|
|
select 1 from t1 order by 2;
|
|
--error 1054
|
|
select 1 from t1 group by 2;
|
|
--error 1054
|
|
select 1 from t1 order by t1.b;
|
|
--error 1054
|
|
select count(*),b from t1;
|
|
drop table t1;
|
|
|
|
# End of 4.1 tests
|
|
|
|
#
|
|
# Bug #6080: Error message for a field with a display width that is too long
|
|
#
|
|
--error 1439
|
|
create table t1 (a int(256));
|
|
set sql_mode='traditional';
|
|
--error 1074
|
|
create table t1 (a varchar(66000));
|
|
|
|
# End of 5.0 tests
|