mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
SHOW VARIABLES LIKE ... are now case insensitive
Fixed stack overflow checking with crash-me with gcc 3.0.4 Using @@unknown_variable doesn't hang client anymore Added @@VERSION variable
This commit is contained in:
@ -1,4 +0,0 @@
|
||||
last_insert_id(345)
|
||||
345
|
||||
@@IDENTITY last_insert_id()
|
||||
345 345
|
@ -47,6 +47,8 @@ test.t1 optimize status Table is already up to date
|
||||
Variable_name Value
|
||||
wait_timeout 28800
|
||||
Variable_name Value
|
||||
wait_timeout 28800
|
||||
Variable_name Value
|
||||
Name Type Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Create_options Comment
|
||||
Database
|
||||
mysql
|
||||
|
@ -23,3 +23,11 @@ c_id c_name c_country
|
||||
c_id c_name c_country
|
||||
1 Bozo USA
|
||||
4 Mr. Floppy GB
|
||||
@@VERSION=version()
|
||||
1
|
||||
last_insert_id(345)
|
||||
345
|
||||
@@IDENTITY last_insert_id()
|
||||
345 345
|
||||
@@IDENTITY
|
||||
345
|
||||
|
@ -1,2 +0,0 @@
|
||||
select last_insert_id(345);
|
||||
select @@IDENTITY,last_insert_id();
|
@ -33,6 +33,7 @@ drop table t1;
|
||||
|
||||
#show variables;
|
||||
show variables like "wait_timeout%";
|
||||
show variables like "WAIT_timeout%";
|
||||
show variables like "this_doesn't_exists%";
|
||||
show table status from test like "this_doesn't_exists%";
|
||||
show databases;
|
||||
|
@ -27,3 +27,14 @@ SELECT * FROM t1 WHERE c_id=@min_cid OR c_id=@max_cid OR c_id=666;
|
||||
ALTER TABLE t1 DROP PRIMARY KEY;
|
||||
select * from t1 where c_id=@min_cid OR c_id=@max_cid;
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# Test system variables
|
||||
#
|
||||
|
||||
select @@VERSION=version();
|
||||
select last_insert_id(345);
|
||||
select @@IDENTITY,last_insert_id();
|
||||
select @@identity;
|
||||
--error 1193
|
||||
select @@unknown_variable;
|
||||
|
Reference in New Issue
Block a user