diff tests/sequence.ur @ 338:e976b187d73a

SQL sequences
author Adam Chlipala <adamc@hcoop.net>
date Sun, 14 Sep 2008 11:02:18 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/sequence.ur	Sun Sep 14 11:02:18 2008 -0400
@@ -0,0 +1,7 @@
+sequence seq
+
+fun main () : transaction page =
+        n <- nextval seq;
+        return <html><body>
+                {txt _ n}
+        </body></html>