mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Add comments, tidy up sql_delete.cc to refer to thd->row_count_func
explicitly.
This commit is contained in:
@ -1423,7 +1423,14 @@ bool select_to_file::send_eof()
|
||||
if (my_close(file,MYF(MY_WME)))
|
||||
error= 1;
|
||||
if (!error)
|
||||
{
|
||||
/*
|
||||
In order to remember the value of affected rows for ROW_COUNT()
|
||||
function, SELECT INTO has to have an own SQLCOM.
|
||||
TODO: split from SQLCOM_SELECT
|
||||
*/
|
||||
::send_ok(thd,row_count);
|
||||
}
|
||||
file= -1;
|
||||
return error;
|
||||
}
|
||||
@ -2338,6 +2345,11 @@ bool select_dumpvar::send_eof()
|
||||
if (! row_count)
|
||||
push_warning(thd, MYSQL_ERROR::WARN_LEVEL_WARN,
|
||||
ER_SP_FETCH_NO_DATA, ER(ER_SP_FETCH_NO_DATA));
|
||||
/*
|
||||
In order to remember the value of affected rows for ROW_COUNT()
|
||||
function, SELECT INTO has to have an own SQLCOM.
|
||||
TODO: split from SQLCOM_SELECT
|
||||
*/
|
||||
::send_ok(thd,row_count);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user