mirror of
https://github.com/MariaDB/server.git
synced 2025-05-28 13:01:41 +03:00
warnings) Before this fix, several places in the code would raise a warning with an error code 0, making it impossible for a stored procedure, a connector, or a client application to trigger logic to handle the warning. Also, the warning text was hard coded, and therefore not translated. With this fix, new errors numbers have been created to represent these warnings, and the warning text is coded in the errmsg.txt file.
37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
use lpt1;
|
|
ERROR 42000: Unknown database 'lpt1'
|
|
use com1;
|
|
ERROR 42000: Unknown database 'com1'
|
|
use prn;
|
|
ERROR 42000: Unknown database 'prn'
|
|
create table nu (a int);
|
|
drop table nu;
|
|
drop table if exists t1;
|
|
CREATE TABLE t1 ( `ID` int(6) ) data directory 'c:/tmp/' index directory 'c:/tmp/' engine=MyISAM;
|
|
Warnings:
|
|
Warning 1616 <DATA DIRECTORY> option ignored
|
|
Warning 1616 <INDEX DIRECTORY> option ignored
|
|
drop table t1;
|
|
CREATE TABLE t1 (a int, b int);
|
|
INSERT INTO t1 VALUES (1,1);
|
|
EXPLAIN SELECT * FROM t1 WHERE b = (SELECT max(2));
|
|
id select_type table type possible_keys key key_len ref rows Extra
|
|
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
|
|
2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
|
|
End of 5.0 tests.
|
|
drop procedure if exists proc_1;
|
|
create procedure proc_1() install plugin my_plug soname '\\root\\some_plugin.dll';
|
|
call proc_1();
|
|
ERROR HY000: No paths allowed for shared library
|
|
call proc_1();
|
|
ERROR HY000: No paths allowed for shared library
|
|
call proc_1();
|
|
ERROR HY000: No paths allowed for shared library
|
|
drop procedure proc_1;
|
|
prepare abc from "install plugin my_plug soname '\\\\root\\\\some_plugin.dll'";
|
|
execute abc;
|
|
ERROR HY000: No paths allowed for shared library
|
|
execute abc;
|
|
ERROR HY000: No paths allowed for shared library
|
|
deallocate prepare abc;
|