Commit c96a268
committed
Also patch result[2] PRAGMA assertion in testCreateTableWithDefaultExpressions
The previous patch only fixed the simple `(1 + 2)` assertion, but
the test also asserts on the translated DATETIME() call expression,
which Turso emits with outer parens AND a space between the function
name and `(`:
expected (real SQLite): DATETIME(CURRENT_TIMESTAMP, '+' || 1 || ' YEAR')
actual (Turso): (DATETIME (CURRENT_TIMESTAMP, '+' || 1 || ' YEAR'))
Update the assertion to match Turso's output. The result[3]
'('a' || 'b')' assertion already matches Turso (real SQLite also
preserves parens for that one), so it's left alone.1 parent b23d78a commit c96a268
1 file changed
Lines changed: 17 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1749 | 1749 | | |
1750 | 1750 | | |
1751 | 1751 | | |
1752 | | - | |
1753 | | - | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
1754 | 1763 | | |
1755 | | - | |
1756 | | - | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
1757 | 1767 | | |
1758 | | - | |
1759 | | - | |
| 1768 | + | |
| 1769 | + | |
1760 | 1770 | | |
1761 | | - | |
| 1771 | + | |
1762 | 1772 | | |
1763 | 1773 | | |
1764 | 1774 | | |
| |||
0 commit comments