Skip to content
Permalink
Browse files
Fixed a failure of the test case for the bug mdev-13107 in --ps-proto…
…col.

The fix was in the call the open_normal_and_derived_tables() from
the function mysql_test_select() and it was similar to those from
the patch for mdev-13107.

Added explicit PREPARE statements that failed in --ps-protocol.
  • Loading branch information
igorbabaev committed Jun 29, 2017
1 parent 18a2b0a commit 13221b1
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
@@ -1033,5 +1033,25 @@ a
3
1
2
prepare stmt1 from "select * from v1";
execute stmt1;
a
2
execute stmt1;
a
2
prepare stmt2 from "select * from v2";
execute stmt2;
a
3
1
2
execute stmt2;
a
3
1
2
deallocate prepare stmt1;
deallocate prepare stmt2;
drop view v1,v2;
drop table t1,t2;
@@ -712,5 +712,15 @@ show create view v2;
select * from v1;
select * from v2;

prepare stmt1 from "select * from v1";
execute stmt1;
execute stmt1;
prepare stmt2 from "select * from v2";
execute stmt2;
execute stmt2;

deallocate prepare stmt1;
deallocate prepare stmt2;

drop view v1,v2;
drop table t1,t2;
@@ -1590,7 +1590,7 @@ static int mysql_test_select(Prepared_statement *stmt,
}

if (open_normal_and_derived_tables(thd, tables, MYSQL_OPEN_FORCE_SHARED_MDL,
DT_PREPARE | DT_CREATE))
DT_INIT | DT_PREPARE | DT_CREATE))
goto error;

thd->lex->used_tables= 0; // Updated by setup_fields

0 comments on commit 13221b1

Please sign in to comment.