1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

More comprehensive error messages and codes

This commit is contained in:
Elena Stepanova
2013-11-08 23:21:26 +04:00
parent 949cb948de
commit 66ed34d6ed
13 changed files with 33 additions and 27 deletions

View File

@ -10,8 +10,10 @@ a
2
ALTER TABLE t1 DISCARD TABLESPACE;
SELECT a FROM t1;
ERROR HY000: Got error -1 "Internal error < 0 (Not system error)" from storage engine <STORAGE_ENGINE>
ERROR HY000: Tablespace has been discarded for table 't1'
ALTER TABLE t1 IMPORT TABLESPACE;
Warnings:
Warning 1810 <STORAGE_ENGINE>: IO Read error: (2, No such file or directory) Error opening './test/t1.cfg', will attempt to import without schema verification
SELECT a FROM t1;
a
1

View File

@ -62,11 +62,11 @@ EOF
--let $alter_definition = DISCARD TABLESPACE
--source alter_table.inc
--let $error_codes = ER_GET_ERRNO
--let $error_codes = ER_TABLESPACE_DISCARDED
--replace_result $storage_engine <STORAGE_ENGINE>
SELECT a FROM t1;
--source check_errors.inc
if ($mysql_errname != ER_GET_ERRNO)
if ($mysql_errname != ER_TABLESPACE_DISCARDED)
{
--let $functionality = Tablespace operations
--source unexpected_result.inc