You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add length() perturbation to translate_table_ref AUTO_INCREMENT subquery
testInformationSchemaTablesFilterByAutoIncrement fails on Turso
mid-suite: WHERE on the AUTO_INCREMENT alias of a correlated
subquery in the derived-table SELECT list returns 0 rows. CI probe
of the same shape on a fresh PDO works, so the bug is
state-dependent — likely Turso's optimizer caches the subquery
result across rows after some prior tests run.
The probe also tested adding `AND length(<alias>.table_name) > 0`
to the correlated subquery's WHERE — same result on isolation but
it forces a fresh outer-column reference at each evaluation, which
should defeat any cross-row caching.
Apply that perturbation here. The shape of translate_table_ref's
output is otherwise unchanged, so we hope this avoids the
testReconstructTable pager fragility that the JOIN-form rewrite
triggered.
0 commit comments