summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-09-07 15:35:08 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-09-07 15:35:08 -0400
commit1a83e7956edd7711c6e379fdfca8aad88495cb44 (patch)
tree1934d17a7a58d4c4fe67e6d5e4b696dedc0b3504 /tests
parent6471ebba2ec8aa38b4735263162181a3b7084b47 (diff)
Automatically add table annotations in 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 49545cc7..6d8060d0 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 = 'Hi', C = 12.34 WHERE T.A = 5);
+ () <- dml (UPDATE t1 SET B = 'Hi', C = 12.34 WHERE A = 5);
return <html><body>Updated.</body></html>