summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-09-07 14:30:32 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-09-07 14:30:32 -0400
commitdf8eea45a9ba38963b5bcc58b4e6439c055524e4 (patch)
tree8a352989a67720ba4146c04fe75dc4503d023e45 /src
parenta8bc278b2a46d93bec4bf88cd7e56f12a253f061 (diff)
Remove need to mention table name in expressions for UPDATE and DELETE
Diffstat (limited to 'src')
-rw-r--r--src/urweb.grm6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/urweb.grm b/src/urweb.grm
index 61e8d179..ef267b37 100644
--- a/src/urweb.grm
+++ b/src/urweb.grm
@@ -753,8 +753,12 @@ eterm : LPAREN eexp RPAREN (#1 eexp, s (LPARENleft, RPARENright))
val loc = s (LPARENleft, RPARENright)
val e = (EVar (["Basis"], "update"), loc)
- val e = (EApp (e, (ERecord fsets, loc)), loc)
+ val e = (ECApp (e, (CRecord (map (fn (nm, _) =>
+ (nm,
+ (CWild (KType, loc), loc)))
+ fsets), loc)), loc)
val e = (EApp (e, texp), loc)
+ val e = (EApp (e, (ERecord fsets, loc)), loc)
in
(EApp (e, sqlexp), loc)
end)