Skip to content

Commit

Permalink
Work around reserved keyword (when using hxgenjs)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmerckx committed Jun 12, 2019
1 parent 2ee521d commit faff4bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tink/sql/format/SqlFormatter.hx
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,12 @@ class SqlFormatter implements Formatter {
if (update.max != null) limit(update.max) else ''
]);

function delete<Row:{}>(delete:DeleteOperation<Row>)
function delete<Row:{}>(del:DeleteOperation<Row>)
return join([
'DELETE FROM',
ident(delete.from.getName()),
where(delete.where),
limit(delete.max)
ident(del.from.getName()),
where(del.where),
limit(del.max)
]);

function binOp(o:BinOp<Dynamic, Dynamic, Dynamic>)
Expand Down

0 comments on commit faff4bd

Please sign in to comment.