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

📄 delayed.test

📁 开启mysql的远程连接的方法 mysql-noinstall-5.1.6-alpha-win32.zip
💻 TEST
字号:
## test of DELAYED insert and timestamps# (Can't be tested with purify :( )## This tests not performed with embedded server-- source include/not_embedded.inc--disable_warningsdrop table if exists t1;--enable_warningscreate table t1 (a char(10), tmsp timestamp);insert into t1 set a = 1;insert delayed into t1 set a = 2;insert into t1 set a = 3, tmsp=NULL;insert delayed into t1 set a = 4;insert delayed into t1 set a = 5, tmsp = 19711006010203;insert delayed into t1 (a, tmsp) values (6, 19711006010203);insert delayed into t1 (a, tmsp) values (7, NULL);--sleep 2insert into t1 set a = 8,tmsp=19711006010203;select * from t1 where tmsp=0;select * from t1 where tmsp=19711006010203;drop table t1;## Test bug when inserting NULL into an auto_increment field with# INSERT DELAYED#create table t1 (a int not null auto_increment primary key, b char(10));insert delayed into t1 values (1,"b");insert delayed into t1 values (null,"c");insert delayed into t1 values (3,"d"),(null,"e");--error 1136insert delayed into t1 values (3,"this will give an","error");# 2 was not enough for --ps-protocol--sleep 4show status like 'not_flushed_delayed_rows';select * from t1;drop table t1;# End of 4.1 tests## Bug #12226: Crash when a delayed insert fails due to a duplicate key#create table t1 (a int not null primary key);insert into t1 values (1);insert delayed into t1 values (1);select * from t1;drop table t1;

⌨️ 快捷键说明

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