summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2018-12-14 12:33:29 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2018-12-14 12:33:29 -0500
commit6d87f78102bba77bc090ca3fb105597d3ce3748f (patch)
tree3f65fb01ea19b745eb605c42265baa733c6ae75b /tests
parent1781a9f989fb1d2839040300aba62c3398f6c0f9 (diff)
Proper ignoring of empty SQL updates
Diffstat (limited to 'tests')
-rw-r--r--tests/emptyUpdate.ur6
-rw-r--r--tests/emptyUpdate.urp4
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/emptyUpdate.ur b/tests/emptyUpdate.ur
new file mode 100644
index 00000000..0402d78a
--- /dev/null
+++ b/tests/emptyUpdate.ur
@@ -0,0 +1,6 @@
+table a : { B : int }
+
+fun main () : transaction page =
+ dml (update [[]] {} a (WHERE TRUE));
+ return <xml></xml>
+
diff --git a/tests/emptyUpdate.urp b/tests/emptyUpdate.urp
new file mode 100644
index 00000000..42cc98e2
--- /dev/null
+++ b/tests/emptyUpdate.urp
@@ -0,0 +1,4 @@
+database dbname=test
+safeGet EmptyUpdate/main
+
+emptyUpdate