fix for --view-protocol

This commit is contained in:
Sergei Golubchik 2023-02-16 20:08:58 +01:00
parent a6874341dd
commit da114c709b
2 changed files with 3 additions and 7 deletions

View file

@ -586,14 +586,10 @@ select
concat(id, '-', key1, '-', col1) concat(id, '-', key1, '-', col1)
FROM t2 FROM t2
WHERE t2.key1 = t1.a WHERE t2.key1 = t1.a
ORDER BY t2.key2 ASC LIMIT 1) ORDER BY t2.key2 ASC LIMIT 1) as subq
from from
t1; t1;
(SELECT subq
concat(id, '-', key1, '-', col1)
FROM t2
WHERE t2.key1 = t1.a
ORDER BY t2.key2 ASC LIMIT 1)
100-0-123456 100-0-123456
101-1-123456 101-1-123456
102-2-123456 102-2-123456

View file

@ -594,7 +594,7 @@ select
concat(id, '-', key1, '-', col1) concat(id, '-', key1, '-', col1)
FROM t2 FROM t2
WHERE t2.key1 = t1.a WHERE t2.key1 = t1.a
ORDER BY t2.key2 ASC LIMIT 1) ORDER BY t2.key2 ASC LIMIT 1) as subq
from from
t1; t1;