1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fixed BUG#3486: FOUND_ROWS() fails inside stored procedure [and prepared statement].

This commit is contained in:
pem@mysql.comhem.se
2004-06-22 19:38:07 +02:00
parent ec09e5f61b
commit 34ddd9c515
6 changed files with 59 additions and 2 deletions

View File

@ -1088,12 +1088,14 @@ JOIN::exec()
DBUG_ENTER("JOIN::exec");
error= 0;
thd->limit_found_rows= thd->examined_row_count= 0;
if (procedure)
{
if (procedure->change_columns(fields_list) ||
result->prepare(fields_list, unit))
{
thd->limit_found_rows= thd->examined_row_count= 0;
DBUG_VOID_RETURN;
}
}
if (!tables_list)
@ -1119,8 +1121,10 @@ JOIN::exec()
else
error=(int) result->send_eof();
}
thd->limit_found_rows= thd->examined_row_count= 0;
DBUG_VOID_RETURN;
}
thd->limit_found_rows= thd->examined_row_count= 0;
if (zero_result_cause)
{