mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Fix for LP#697622 Assertion `! is_set()' failed when preparing a HANDLER statement
mysql-test/suite/handler/interface.result: Test case mysql-test/suite/handler/interface.test: Test case sql/sql_prepare.cc: Fix for LP#697622 Assertion `! is_set()' failed when preparing a HANDLER statement Return TRUE if mysql_test_handler_read() fails.
This commit is contained in:
@@ -257,3 +257,5 @@ drop table t1;
|
|||||||
USE information_schema;
|
USE information_schema;
|
||||||
HANDLER COLUMNS OPEN;
|
HANDLER COLUMNS OPEN;
|
||||||
ERROR HY000: Incorrect usage of HANDLER OPEN and information_schema
|
ERROR HY000: Incorrect usage of HANDLER OPEN and information_schema
|
||||||
|
PREPARE h_r FROM 'HANDLER t1 READ `PRIMARY` LAST';
|
||||||
|
ERROR 42S02: Unknown table 't1' in HANDLER
|
||||||
|
@@ -305,3 +305,9 @@ connection default;
|
|||||||
USE information_schema;
|
USE information_schema;
|
||||||
--error ER_WRONG_USAGE
|
--error ER_WRONG_USAGE
|
||||||
HANDLER COLUMNS OPEN;
|
HANDLER COLUMNS OPEN;
|
||||||
|
|
||||||
|
#
|
||||||
|
# LP#697622 Assertion `! is_set()' failed when preparing a HANDLER statement
|
||||||
|
#
|
||||||
|
--error ER_UNKNOWN_TABLE
|
||||||
|
PREPARE h_r FROM 'HANDLER t1 READ `PRIMARY` LAST';
|
||||||
|
@@ -2004,11 +2004,8 @@ static bool check_prepared_statement(Prepared_statement *stmt)
|
|||||||
|
|
||||||
case SQLCOM_HA_READ:
|
case SQLCOM_HA_READ:
|
||||||
res= mysql_test_handler_read(stmt, tables);
|
res= mysql_test_handler_read(stmt, tables);
|
||||||
{
|
/* Statement and field info has already been sent */
|
||||||
/* Statement and field info has already been sent */
|
DBUG_RETURN(res == 1 ? TRUE : FALSE);
|
||||||
DBUG_RETURN(FALSE);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Note that we don't need to have cases in this list if they are
|
Note that we don't need to have cases in this list if they are
|
||||||
|
Reference in New Issue
Block a user