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
(deftest complicated-mutations-test
(is (= #{"delete" "insert"}
(mutations "WITH outdated_orders AS (
DELETE FROM orders
WHERE
date <= '2018-01-01'
RETURNING *
)
INSERT INTO order_log
SELECT * from outdated_orders;"))))
with
macaw.core-test
1 non-passing tests:
Error in complicated-mutations-test
expected: (=
#{"delete" "insert"}
(mutations
"WITH outdated_orders AS (
DELETE FROM orders
WHERE
date <= '2018-01-01'
RETURNING *
)
INSERT INTO order_log
SELECT * from outdated_orders;"))
error: net.sf.jsqlparser.JSQLParserException: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "DELETE" "DELETE"
at line 2, column 24.
Was expecting:
"WITH"
The text was updated successfully, but these errors were encountered:
This is legal in Postgres
But fails
with
The text was updated successfully, but these errors were encountered: