mirror of
https://github.com/MariaDB/server.git
synced 2025-02-22 13:23:07 +01:00
![]() We now allow multitable queries with order by and limit, such as: delete t1.*, t2.* from t1, t2 order by t1.id desc limit 3; To predict what rows will be deleted, run the equivalent select: select t1.*, t2.* from t1, t2 order by t1.id desc limit 3; Additionally, index hints are now supported with single table delete statements: delete from t2 use index(xid) order by (id) limit 2; This approach changes the multi_delete SELECT result interceptor to use a temporary table to collect row ids pertaining to the rows that will be deleted, rather than directly deleting rows from the target table(s). Row ids are collected during send_data, then read during send_eof to delete target rows. In the event that the temporary table created in memory is not big enough for all matching rows, it is converted to an aria table. Other changes: - Deleting from a sequence now affects zero rows instead of emitting an error Limitations: - The federated connector does not create implicit row ids, so we to use a key when conditionally deleting. See the change in federated_maybe_16324629.test |
||
---|---|---|
.. | ||
alter.result | ||
alter.test | ||
alter_notembedded.result | ||
alter_notembedded.test | ||
aria.result | ||
aria.test | ||
auto_increment.result | ||
auto_increment.test | ||
binlog.result | ||
binlog.test | ||
concurrent_create.result | ||
concurrent_create.test | ||
create.result | ||
create.test | ||
debug_sync.opt | ||
debug_sync.result | ||
debug_sync.test | ||
default.result | ||
default.test | ||
disabled.def | ||
grant.result | ||
grant.test | ||
gtid-master.opt | ||
gtid-slave.opt | ||
gtid.result | ||
gtid.test | ||
kill.result | ||
kill.test | ||
lock.result | ||
lock.test | ||
mysqldump.result | ||
mysqldump.test | ||
next.result | ||
next.test | ||
other.result | ||
other.test | ||
partition.result | ||
partition.test | ||
read_only.result | ||
read_only.test | ||
rebuild.result | ||
rebuild.test | ||
rename.result | ||
rename.test | ||
replication-master.opt | ||
replication-slave.opt | ||
replication.result | ||
replication.test | ||
replication_drop.result | ||
replication_drop.test | ||
replication_mixed.result | ||
replication_mixed.test | ||
setval.result | ||
setval.test | ||
slave_nextval.result | ||
slave_nextval.test | ||
temporary.result | ||
temporary.test | ||
view.result | ||
view.test |