changeset 301:54282db31a9b

Elaborated 'delete'
author Adam Chlipala <adamc@hcoop.net>
date Sun, 07 Sep 2008 13:52:42 -0400
parents cde1ec47f3af
children bc89dfdbc495
files tests/delete.ur tests/delete.urp
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/delete.ur	Sun Sep 07 13:52:42 2008 -0400
@@ -0,0 +1,5 @@
+table t1 : {A : int, B : string, C : float, D : bool}
+
+fun main () : transaction page =
+        () <- dml (delete t1 (WHERE T.A = 5));
+        return <html><body>Deleted.</body></html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/delete.urp	Sun Sep 07 13:52:42 2008 -0400
@@ -0,0 +1,6 @@
+debug
+database dbname=test
+exe /tmp/webapp
+sql /tmp/urweb.sql
+
+delete