summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-09-14 11:02:18 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-09-14 11:02:18 -0400
commitc81c24b4feb3fae3c13861f1bcaafab697a6bb7e (patch)
tree4f168489261d0202a9d664e548dd71a10665df46 /tests
parent0faed8b64498534297bd797108b659802815aefc (diff)
SQL sequences
Diffstat (limited to 'tests')
-rw-r--r--tests/sequence.ur7
-rw-r--r--tests/sequence.urp6
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/sequence.ur b/tests/sequence.ur
new file mode 100644
index 00000000..4d37d05a
--- /dev/null
+++ b/tests/sequence.ur
@@ -0,0 +1,7 @@
+sequence seq
+
+fun main () : transaction page =
+ n <- nextval seq;
+ return <html><body>
+ {txt _ n}
+ </body></html>
diff --git a/tests/sequence.urp b/tests/sequence.urp
new file mode 100644
index 00000000..5edfb18e
--- /dev/null
+++ b/tests/sequence.urp
@@ -0,0 +1,6 @@
+debug
+database dbname=test
+exe /tmp/webapp
+sql /tmp/urweb.sql
+
+sequence