summaryrefslogtreecommitdiff
path: root/tests
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 /tests
parenta8bc278b2a46d93bec4bf88cd7e56f12a253f061 (diff)
Remove need to mention table name in expressions for UPDATE and DELETE
Diffstat (limited to 'tests')
-rw-r--r--tests/delete.ur2
-rw-r--r--tests/update.ur2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/delete.ur b/tests/delete.ur
index e2109f61..fee63812 100644
--- a/tests/delete.ur
+++ b/tests/delete.ur
@@ -1,5 +1,5 @@
table t1 : {A : int, B : string, C : float, D : bool}
fun main () : transaction page =
- () <- dml (DELETE FROM t1 WHERE T.A = 5);
+ () <- dml (DELETE FROM t1 WHERE A = 5);
return <html><body>Deleted.</body></html>
diff --git a/tests/update.ur b/tests/update.ur
index e58c10cb..06de35f8 100644
--- a/tests/update.ur
+++ b/tests/update.ur
@@ -1,5 +1,5 @@
table t1 : {A : int, B : string, C : float, D : bool}
fun main () : transaction page =
- () <- dml (UPDATE t1 SET B = '6', C = 7.0 WHERE T.A = 5);
+ () <- dml (UPDATE t1 SET B = '6', C = 7.0 WHERE A = 5);
return <html><body>Updated.</body></html>