diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2018-11-07 09:25:12 +0100 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2018-11-07 09:25:12 +0100 |
commit | 6cecb10a2f8b6536bed78ab6d3791d8befc9d732 (patch) | |
tree | 693381c19e8772dec7d563d58caab5d95b091a26 /sql/sql_update.cc | |
parent | 5f29fdecc0e22048e860ac256cc071ce206d453e (diff) | |
download | mariadb-git-6cecb10a2f8b6536bed78ab6d3791d8befc9d732.tar.gz |
MDEV-11167: InnoDB: Warning: using a partial-field key prefix in search, results in assertion failure or "Can't find record" error
Fix ha_rnd_init() argument (we do not doing scan but use rnd_pos)
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r-- | sql/sql_update.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc index 592e8158c0d..1972cc82454 100644 --- a/sql/sql_update.cc +++ b/sql/sql_update.cc @@ -2309,7 +2309,7 @@ int multi_update::do_updates() check_opt_it.rewind(); while(TABLE *tbl= check_opt_it++) { - if ((local_error= tbl->file->ha_rnd_init(1))) + if ((local_error= tbl->file->ha_rnd_init(0))) { err_table= tbl; goto err; |