diff lib/basis.urs @ 302:bc89dfdbc495

Parsing INSERT
author Adam Chlipala <adamc@hcoop.net>
date Sun, 07 Sep 2008 14:07:10 -0400
parents cde1ec47f3af
children 7204fab29486
line wrap: on
line diff
--- a/lib/basis.urs	Sun Sep 07 13:52:42 2008 -0400
+++ b/lib/basis.urs	Sun Sep 07 14:07:10 2008 -0400
@@ -205,7 +205,8 @@
 
 val insert : fields ::: {Type}
         -> sql_table fields
-        -> $fields
+        -> $(fold (fn nm (t :: Type) acc => [nm] ~ acc =>
+                [nm = sql_exp [T = fields] [] [] t] ++ acc) [] fields)
         -> dml
 
 val update : changed ::: {Type} -> unchanged ::: {Type} -> changed ~ unchanged