aboutsummaryrefslogtreecommitdiffhomepage
path: root/demo/noisy.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-04-07 16:22:11 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-04-07 16:22:11 -0400
commit24158c81fb4cc8b318ceb5bc461ab2f494cb7b78 (patch)
tree931b8113bdd0687ea37ee48d1dede73a7cc65a46 /demo/noisy.ur
parent26ad31287745567b98b357de9793a0e795c63334 (diff)
Add primary keys to demo
Diffstat (limited to 'demo/noisy.ur')
-rw-r--r--demo/noisy.ur1
1 files changed, 1 insertions, 0 deletions
diff --git a/demo/noisy.ur b/demo/noisy.ur
index 118af737..708cfa2c 100644
--- a/demo/noisy.ur
+++ b/demo/noisy.ur
@@ -1,6 +1,7 @@
datatype list t = Nil | Cons of t * list t
table t : { Id : int, A : string }
+ PRIMARY KEY Id
fun add id s =
dml (INSERT INTO t (Id, A) VALUES ({[id]}, {[s]}))