1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

don't crash if ALTER TABLE fails and a long transaction blocks MDL upgrade

This commit is contained in:
Sergei Golubchik
2022-06-01 21:52:27 +02:00
parent 332f41aae3
commit b2be2e39a6
6 changed files with 77 additions and 31 deletions

View File

@@ -277,6 +277,7 @@ explain select count(*) from t1 where v between 'a' and 'a ' and v between 'a '
--error ER_DUP_ENTRY
alter table t1 add unique(v);
select concat('*',v,'*',c,'*',t,'*') as qq from t1 where v='a' order by length(concat('*',v,'*',c,'*',t,'*'));
flush tables;
explain select * from t1 where v='a';
# GROUP BY