⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 create_select_tmp.test

📁 视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.
💻 TEST
字号:
# Testcase for BUG#4551# The bug was that when the table was TEMPORARY, it was not deleted if# the CREATE SELECT failed (the code intended too, but it actually# didn't). And as the CREATE TEMPORARY TABLE was not written to the# binlog if it was a transactional table, it resulted in an# inconsistency between binlog and the internal list of temp tables.-- source include/have_innodb.inc--disable_warningsdrop table if exists t1, t2;--enable_warningsCREATE TABLE t1 ( a int );INSERT INTO t1 VALUES (1),(2),(1);--error 1062CREATE TABLE t2 ( PRIMARY KEY (a) ) ENGINE=INNODB SELECT a FROM t1;--error 1146select * from t2;--error 1062CREATE TEMPORARY TABLE t2 ( PRIMARY KEY (a) ) ENGINE=INNODB SELECT a FROM t1;--error 1146select * from t2;--error 1062CREATE TABLE t2 ( PRIMARY KEY (a) ) ENGINE=MYISAM SELECT a FROM t1;--error 1146select * from t2;--error 1062CREATE TEMPORARY TABLE t2 ( PRIMARY KEY (a) ) ENGINE=MYISAM SELECT a FROM t1;--error 1146select * from t2;drop table t1;# End of 4.1 tests

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -