Commit 34c3482
(fix): CI — testTransformations: preserve placeholders in transformed SQL
The transformation rewrote the prepared SQL to "SELECT 1", but SQL.php's
getDocument still calls bindValue(':_uid', $id) (and ':_tenant' for
sharedTables). PDO throws HY093 because the rewritten query has no
placeholders.
Wrap the original query as a derived table with WHERE 1=0 instead. The
inner query keeps the :_uid / :_tenant placeholders so the bindValue
calls match, while the outer WHERE forces zero rows so isEmpty() still
asserts the trigger was applied.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 4c291dd commit 34c3482
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1671 | 1671 | | |
1672 | 1672 | | |
1673 | 1673 | | |
1674 | | - | |
| 1674 | + | |
1675 | 1675 | | |
1676 | 1676 | | |
1677 | 1677 | | |
| |||
0 commit comments