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:
@ -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)
|
||||
|
Reference in New Issue
Block a user