summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-09-07 13:47:10 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-09-07 13:47:10 -0400
commit725ce6746ebcd76fc3a8c7aa3248805493d71fa0 (patch)
tree8292403aa4aeb15da4f89189e97210b353704140 /tests
parent8443e6fb491fa8c8877e53e6548e2fca401e24d5 (diff)
Elaborated 'insert'
Diffstat (limited to 'tests')
-rw-r--r--tests/insert.ur5
-rw-r--r--tests/insert.urp6
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/insert.ur b/tests/insert.ur
new file mode 100644
index 00000000..58db4ef1
--- /dev/null
+++ b/tests/insert.ur
@@ -0,0 +1,5 @@
+table t1 : {A : int, B : string, C : float, D : bool}
+
+fun main () : transaction page =
+ () <- dml (insert t1 {A = 5, B = "6", C = 7.0, D = True});
+ return <html><body>Inserted.</body></html>
diff --git a/tests/insert.urp b/tests/insert.urp
new file mode 100644
index 00000000..20d24480
--- /dev/null
+++ b/tests/insert.urp
@@ -0,0 +1,6 @@
+debug
+database dbname=test
+exe /tmp/webapp
+sql /tmp/urweb.sql
+
+insert