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

MDEV-7832 Add status variables to track CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE

Pretend that CREATE TABLE and CREATE TEMPORARY TABLE are
two different commands internally. The user doesn't need
to know that they both are SQLCOM_CREATE_TABLE.

Same for DROP [TEMPORARY] TABLE
This commit is contained in:
Sergei Golubchik
2015-06-19 20:58:26 +02:00
parent e24caa7588
commit 1ce71c8478
5 changed files with 53 additions and 10 deletions

View File

@ -293,3 +293,18 @@ test.t3 repair status OK
DROP TABLES t1, t2, t3;
create temporary temporary table t1 (a int);
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'temporary table t1 (a int)' at line 1
flush status;
create table t1 (a int);
create temporary table t2 (a int);
create temporary table t3 (a int);
drop table t1;
drop table t2;
drop temporary table t3;
show status like 'com_create%table';
Variable_name Value
Com_create_table 1
Com_create_temporary_table 2
show status like 'com_drop%table';
Variable_name Value
Com_drop_table 2
Com_drop_temporary_table 1