inca / circumflex

[UNMAINTAINED] Circumflex — lightweight Scala-based Web application framework and ORM
http://circumflex.ru
Other
164 stars 35 forks source link

Aliases on Mysql Delete #73

Closed elgaard closed 13 years ago

elgaard commented 13 years ago

I get MySQL syntax errors on

(CanteenRights).map(cri => DELETE (cri) WHERE (canteen EQ canteenArg))

The generated SQL is

=DELETE FROM canteen_rights AS cri WHERE canteen = ?

DELETE FROM canteen_rights WHERE canteen = 'foo';

works

DELETE cri FROM canteen_rights as cri WHERE canteen = 'foo';

work, but

DELETE FROM canteen_rights as cri WHERE canteen = 'foo';

gives a syntax error.

This is:

scala 2.89.1 ORM 2.0.1 Mysql 5.1.56 Debian/sid