1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

fixed reporting error

This commit is contained in:
unknown
2005-01-03 22:16:54 +02:00
parent 2bcaed348d
commit 386f1f35fa

View File

@@ -1043,6 +1043,7 @@ static int mysql_test_delete(Prepared_statement *stmt,
if (!open_and_lock_tables(thd, table_list))
{
bool res;
if (!table_list->table)
{
DBUG_ASSERT(table_list->view &&
@@ -1052,9 +1053,9 @@ static int mysql_test_delete(Prepared_statement *stmt,
DBUG_RETURN(-1);
}
mysql_prepare_delete(thd, table_list, &lex->select_lex.where);
res= mysql_prepare_delete(thd, table_list, &lex->select_lex.where);
lex->unit.cleanup();
DBUG_RETURN(FALSE);
DBUG_RETURN(res);
}
/* TODO: here we should send types of placeholders to the client. */
DBUG_RETURN(TRUE);