summaryrefslogtreecommitdiff
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
commit0230ce71e14ea09b3037ff4b58c3bae323c12236 (patch)
tree931b8113bdd0687ea37ee48d1dede73a7cc65a46 /demo/noisy.ur
parenta4849d43a72070576fbb7a0d3a48956948152899 (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]}))