1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +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

@ -154,7 +154,7 @@ Item *create_func_found_rows(void)
{
THD *thd=current_thd;
thd->lex->safe_to_cache_query= 0;
return new Item_int(NullS,(longlong) thd->found_rows(),21);
return new Item_func_found_rows();
}
Item *create_func_from_days(Item* a)