add support for DELETE statements

master
Moritz Heidkamp 13 years ago
parent ae8e641faa
commit 4f63ddbbb0

@ -197,6 +197,7 @@
(define-operators *ansi-translator*
(select prefix)
(update prefix)
(delete prefix)
(from prefix "FROM" ", ")
(where prefix)
(order prefix "ORDER BY" ", ")

@ -57,6 +57,10 @@
"INSERT INTO actors VALUES ('Marlon', 'Brando')"
(ssql->sql #f '(insert (into actors) (values ("Marlon" "Brando"))))))
(test-group "deletes"
(test "DELETE FROM actors WHERE (id IN (10, 11, 93))"
(ssql->sql #f '(delete (from actors) (where (in id #(10 11 93)))))))
(test-group "syntax"
(test "set literals"
"SELECT one, two FROM (1, 2)"

Loading…
Cancel
Save