mirror of
https://github.com/MariaDB/server.git
synced 2025-07-02 14:22:51 +03:00
- Added tests for innodb and semisync plugin - Modified existing tests to include variable values in I_S tables - Updated the all_vars test to include optional checkes for INNODB and semisync plugin if loaded
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
|
|
#
|
|
# exists as a session only
|
|
#
|
|
# 2010-01-20 OBN - Added check for variable value matching I_S tables
|
|
#
|
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
select @@global.last_insert_id;
|
|
select @@session.last_insert_id;
|
|
show global variables like 'last_insert_id';
|
|
show session variables like 'last_insert_id';
|
|
select * from information_schema.global_variables where variable_name='last_insert_id';
|
|
select * from information_schema.session_variables where variable_name='last_insert_id';
|
|
|
|
#
|
|
# show that it's writable
|
|
#
|
|
--error ER_LOCAL_VARIABLE
|
|
set global last_insert_id=99;
|
|
set session last_insert_id=42;
|
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
select @@global.last_insert_id;
|
|
select @@session.last_insert_id;
|
|
show global variables like 'last_insert_id';
|
|
show session variables like 'last_insert_id';
|
|
select * from information_schema.global_variables where variable_name='last_insert_id';
|
|
select * from information_schema.session_variables where variable_name='last_insert_id';
|
|
|
|
#
|
|
# incorrect types
|
|
#
|
|
--error ER_WRONG_TYPE_FOR_VAR
|
|
set session last_insert_id=1.1;
|
|
--error ER_WRONG_TYPE_FOR_VAR
|
|
set session last_insert_id=1e1;
|
|
--error ER_WRONG_TYPE_FOR_VAR
|
|
set session last_insert_id="foo";
|
|
|