Loading innobase/row/row0mysql.c +10 −10 Original line number Diff line number Diff line Loading @@ -2237,14 +2237,14 @@ do not allow the discard. We also reserve the data dictionary latch. */ } } funct_exit: trx_commit_for_mysql(trx); row_mysql_unlock_data_dictionary(trx); if (graph) { que_graph_free(graph); } trx_commit_for_mysql(trx); trx->op_info = ""; return((int) err); Loading Loading @@ -2374,10 +2374,10 @@ row_import_tablespace_for_mysql( } funct_exit: row_mysql_unlock_data_dictionary(trx); trx_commit_for_mysql(trx); row_mysql_unlock_data_dictionary(trx); trx->op_info = ""; return((int) err); Loading Loading @@ -2769,6 +2769,8 @@ fputs(" InnoDB: You are trying to drop table ", stderr); } funct_exit: trx_commit_for_mysql(trx); if (locked_dictionary) { row_mysql_unlock_data_dictionary(trx); } Loading @@ -2779,8 +2781,6 @@ fputs(" InnoDB: You are trying to drop table ", stderr); que_graph_free(graph); trx_commit_for_mysql(trx); trx->op_info = ""; srv_wake_master_thread(); Loading Loading @@ -2857,10 +2857,10 @@ row_drop_database_for_mysql( } } row_mysql_unlock_data_dictionary(trx); trx_commit_for_mysql(trx); row_mysql_unlock_data_dictionary(trx); trx->op_info = ""; return(err); Loading Loading @@ -3272,6 +3272,8 @@ row_rename_table_for_mysql( } } funct_exit: trx_commit_for_mysql(trx); if (!recovering_temp_table) { row_mysql_unlock_data_dictionary(trx); } Loading @@ -3284,8 +3286,6 @@ row_rename_table_for_mysql( mem_heap_free(heap); } trx_commit_for_mysql(trx); trx->op_info = ""; return((int) err); Loading mysql-test/r/func_in.result +0 −21 Original line number Diff line number Diff line Loading @@ -202,24 +202,3 @@ select count(*) from t1 where id not in (1,2); count(*) 1 drop table t1; create table t1 (f1 char(1), f2 int); insert into t1 values (1,0),('a',1),('z',2); select f1 from t1 where f1 in (1,'z'); f1 1 z select f2 from t1 where f2 in (1,'z'); f2 0 1 select f1 from t1 where 'z' in (1,f1); f1 z select * from t1 where 'z' in (f2,f1); f1 f2 z 2 select * from t1 where 1 in (f2,f1); f1 f2 1 0 a 1 drop table t1; mysql-test/r/myisam.result +8 −0 Original line number Diff line number Diff line Loading @@ -748,3 +748,11 @@ select count(id1) from t1 where id2 = 10; count(id1) 5 drop table t1; CREATE TABLE t1(a CHAR(9), b VARCHAR(7)) ENGINE=MyISAM; INSERT INTO t1(a) VALUES('xxxxxxxxx'),('xxxxxxxxx'); UPDATE t1 AS ta1,t1 AS ta2 SET ta1.b='aaaaaa',ta2.b='bbbbbb'; SELECT * FROM t1; a b xxxxxxxxx bbbbbb xxxxxxxxx bbbbbb DROP TABLE t1; mysql-test/t/func_in.test +0 −12 Original line number Diff line number Diff line Loading @@ -109,16 +109,4 @@ select count(*) from t1 where id not in (1); select count(*) from t1 where id not in (1,2); drop table t1; # # Bug#18360 Incorrect type coercion in IN() results in false comparison # create table t1 (f1 char(1), f2 int); insert into t1 values (1,0),('a',1),('z',2); select f1 from t1 where f1 in (1,'z'); select f2 from t1 where f2 in (1,'z'); select f1 from t1 where 'z' in (1,f1); select * from t1 where 'z' in (f2,f1); select * from t1 where 1 in (f2,f1); drop table t1; # End of 4.1 tests mysql-test/t/myisam.test +9 −0 Original line number Diff line number Diff line Loading @@ -705,4 +705,13 @@ select count(*) from t1 where id2 = 10; select count(id1) from t1 where id2 = 10; drop table t1; # # BUG#18036 - update of table joined to self reports table as crashed # CREATE TABLE t1(a CHAR(9), b VARCHAR(7)) ENGINE=MyISAM; INSERT INTO t1(a) VALUES('xxxxxxxxx'),('xxxxxxxxx'); UPDATE t1 AS ta1,t1 AS ta2 SET ta1.b='aaaaaa',ta2.b='bbbbbb'; SELECT * FROM t1; DROP TABLE t1; # End of 4.1 tests Loading
innobase/row/row0mysql.c +10 −10 Original line number Diff line number Diff line Loading @@ -2237,14 +2237,14 @@ do not allow the discard. We also reserve the data dictionary latch. */ } } funct_exit: trx_commit_for_mysql(trx); row_mysql_unlock_data_dictionary(trx); if (graph) { que_graph_free(graph); } trx_commit_for_mysql(trx); trx->op_info = ""; return((int) err); Loading Loading @@ -2374,10 +2374,10 @@ row_import_tablespace_for_mysql( } funct_exit: row_mysql_unlock_data_dictionary(trx); trx_commit_for_mysql(trx); row_mysql_unlock_data_dictionary(trx); trx->op_info = ""; return((int) err); Loading Loading @@ -2769,6 +2769,8 @@ fputs(" InnoDB: You are trying to drop table ", stderr); } funct_exit: trx_commit_for_mysql(trx); if (locked_dictionary) { row_mysql_unlock_data_dictionary(trx); } Loading @@ -2779,8 +2781,6 @@ fputs(" InnoDB: You are trying to drop table ", stderr); que_graph_free(graph); trx_commit_for_mysql(trx); trx->op_info = ""; srv_wake_master_thread(); Loading Loading @@ -2857,10 +2857,10 @@ row_drop_database_for_mysql( } } row_mysql_unlock_data_dictionary(trx); trx_commit_for_mysql(trx); row_mysql_unlock_data_dictionary(trx); trx->op_info = ""; return(err); Loading Loading @@ -3272,6 +3272,8 @@ row_rename_table_for_mysql( } } funct_exit: trx_commit_for_mysql(trx); if (!recovering_temp_table) { row_mysql_unlock_data_dictionary(trx); } Loading @@ -3284,8 +3286,6 @@ row_rename_table_for_mysql( mem_heap_free(heap); } trx_commit_for_mysql(trx); trx->op_info = ""; return((int) err); Loading
mysql-test/r/func_in.result +0 −21 Original line number Diff line number Diff line Loading @@ -202,24 +202,3 @@ select count(*) from t1 where id not in (1,2); count(*) 1 drop table t1; create table t1 (f1 char(1), f2 int); insert into t1 values (1,0),('a',1),('z',2); select f1 from t1 where f1 in (1,'z'); f1 1 z select f2 from t1 where f2 in (1,'z'); f2 0 1 select f1 from t1 where 'z' in (1,f1); f1 z select * from t1 where 'z' in (f2,f1); f1 f2 z 2 select * from t1 where 1 in (f2,f1); f1 f2 1 0 a 1 drop table t1;
mysql-test/r/myisam.result +8 −0 Original line number Diff line number Diff line Loading @@ -748,3 +748,11 @@ select count(id1) from t1 where id2 = 10; count(id1) 5 drop table t1; CREATE TABLE t1(a CHAR(9), b VARCHAR(7)) ENGINE=MyISAM; INSERT INTO t1(a) VALUES('xxxxxxxxx'),('xxxxxxxxx'); UPDATE t1 AS ta1,t1 AS ta2 SET ta1.b='aaaaaa',ta2.b='bbbbbb'; SELECT * FROM t1; a b xxxxxxxxx bbbbbb xxxxxxxxx bbbbbb DROP TABLE t1;
mysql-test/t/func_in.test +0 −12 Original line number Diff line number Diff line Loading @@ -109,16 +109,4 @@ select count(*) from t1 where id not in (1); select count(*) from t1 where id not in (1,2); drop table t1; # # Bug#18360 Incorrect type coercion in IN() results in false comparison # create table t1 (f1 char(1), f2 int); insert into t1 values (1,0),('a',1),('z',2); select f1 from t1 where f1 in (1,'z'); select f2 from t1 where f2 in (1,'z'); select f1 from t1 where 'z' in (1,f1); select * from t1 where 'z' in (f2,f1); select * from t1 where 1 in (f2,f1); drop table t1; # End of 4.1 tests
mysql-test/t/myisam.test +9 −0 Original line number Diff line number Diff line Loading @@ -705,4 +705,13 @@ select count(*) from t1 where id2 = 10; select count(id1) from t1 where id2 = 10; drop table t1; # # BUG#18036 - update of table joined to self reports table as crashed # CREATE TABLE t1(a CHAR(9), b VARCHAR(7)) ENGINE=MyISAM; INSERT INTO t1(a) VALUES('xxxxxxxxx'),('xxxxxxxxx'); UPDATE t1 AS ta1,t1 AS ta2 SET ta1.b='aaaaaa',ta2.b='bbbbbb'; SELECT * FROM t1; DROP TABLE t1; # End of 4.1 tests