3225 Matthias Leich 2011-06-21
Fix for Bug 12431362 - THE TESTS PERFSCHEMA.ALL_TESTS DOES NOT CLEAN UP PROPERLY.
modified:
mysql-test/suite/perfschema/r/all_tests.result
mysql-test/suite/perfschema/t/all_tests.test
3224 Jon Olav Hauglid 2011-06-21
Bug#12661349 Assert in protocol::end_statement
The triggered assert checks that either OK or an error
is sent to the client after a command has been processed
by the server. It was triggered in this case if the client
used binary protocol and the connection was killed during
prepare. On release builds, the consequence of the bug was
that OK was sent to the client even if the prepare failed.
When processing a SQL command, a check towards end of
processing makes sure to report KILL_QUERY error to the
client if the connection/command was killed. This check
was however not done for binary protocol processing
(COM_STMT_PREPARE in this case).
This patch fixes the problem by making sure that the
KILL_QUERY error is sent to the client in these cases
as well.
Test case added to ps.test.
modified:
mysql-test/r/ps.result
mysql-test/t/ps.test
sql/sql_class.h
sql/sql_parse.cc
=== modified file 'mysql-test/suite/perfschema/r/all_tests.result'
--- a/mysql-test/suite/perfschema/r/all_tests.result 2011-02-09 15:22:04 +0000
+++ b/mysql-test/suite/perfschema/r/all_tests.result 2011-06-21 13:38:03 +0000
@@ -2,7 +2,7 @@ drop table if exists t1;
drop table if exists t2;
create table t1 (test_name text);
create table t2 (test_name text);
-load data infile "MYSQLTEST_VARDIR/tmp/perfschema-all_tests.txt" into table t1;
+load data infile "<MYSQLTEST_VARDIR>/tmp/perfschema-all_tests.txt" into table t1;
insert into t2 select concat('ddl_', table_name, '.test') from information_schema.tables
where table_schema='performance_schema';
insert into t2 select concat('dml_', table_name, '.test') from information_schema.tables
=== modified file 'mysql-test/suite/perfschema/t/all_tests.test'
--- a/mysql-test/suite/perfschema/t/all_tests.test 2011-02-09 15:22:04 +0000
+++ b/mysql-test/suite/perfschema/t/all_tests.test 2011-06-21 13:38:03 +0000
@@ -1,4 +1,4 @@
-# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -16,7 +16,7 @@
--source include/not_embedded.inc
#
-# Test based on mysql-test/suite/sys_vars/all_vars.test,
+# Test based on mysql-test/suite/sys_vars/t/all_vars.test
# and adapted for the performance schema tables.
#
# This test verifies that *all* performance schema tables are tested
@@ -46,7 +46,7 @@ drop table if exists t2;
create table t1 (test_name text);
create table t2 (test_name text);
---replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
+--replace_result $MYSQLTEST_VARDIR <MYSQLTEST_VARDIR>
eval load data infile "$MYSQLTEST_VARDIR/tmp/perfschema-all_tests.txt" into table t1;
insert into t2 select concat('ddl_', table_name, '.test') from information_schema.tables
@@ -76,3 +76,4 @@ select test_name as `MISSING DDL/DML TES
drop table t1;
drop table t2;
+--remove_file $MYSQLTEST_VARDIR/tmp/perfschema-all_tests.txt
Attachment: [text/bzr-bundle] bzr/matthias.leich@oracle.com-20110621133803-dbrics1pynl8e47g.bundle
| Thread |
|---|
| • bzr push into mysql-trunk branch (matthias.leich:3224 to 3225) | Matthias Leich | 21 Jun |