diff options
author | Rucha Deodhar <rucha.deodhar@mariadb.com> | 2021-12-24 14:00:47 +0530 |
---|---|---|
committer | Rucha Deodhar <rucha.deodhar@mariadb.com> | 2022-01-03 18:14:59 +0530 |
commit | 452c9a4d72c18a19136a91f4d59ee60eedd486be (patch) | |
tree | 2a824206a75eda98b8d2d70f67e3f7611bc420eb /ndb/include | |
parent | 5d57e04b27d0e69081b63b9e382cc3d9dc4480c0 (diff) | |
download | mariadb-git-bb-10.2-MDEV-26698.tar.gz |
MDEV-26698: Incorrect row number upon INSERT .. SELECT from the samebb-10.2-MDEV-26698
table: rows are counted twice
Analysis: When the table we are trying to insert into and the SELECT table
are same for INSERT ... SELECT, rows from the SELECT table are copied into
internal temporary table and then to the INSERT table. We only want to
count the rows when we start inserting into the table.
Fix: Reset the counter to 1 before starting to copy from internal temporary
table to select table and then increment the counter.
Diffstat (limited to 'ndb/include')
0 files changed, 0 insertions, 0 deletions