1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-26635 ROW_NUMBER is not 0 for errors not caused because of rows

This commit is contained in:
Sergei Golubchik
2021-10-02 20:50:18 +02:00
parent f845a98354
commit a398fcbff6
63 changed files with 383 additions and 373 deletions

View File

@ -728,6 +728,8 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
explain= (Explain_delete*)thd->lex->explain->get_upd_del_plan();
explain->tracker.on_scan_init();
thd->get_stmt_da()->reset_current_row_for_warning(1);
if (!delete_while_scanning)
{
/*