diff demo/noisy.ur @ 708:1a317a707d71

Add primary keys to demo
author Adam Chlipala <adamc@hcoop.net>
date Tue, 07 Apr 2009 16:22:11 -0400
parents bab524996fca
children 15ddd64a5113
line wrap: on
line diff
--- a/demo/noisy.ur	Tue Apr 07 16:14:31 2009 -0400
+++ b/demo/noisy.ur	Tue Apr 07 16:22:11 2009 -0400
@@ -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]}))