diff demo/chat.ur @ 708:1a317a707d71

Add primary keys to demo
author Adam Chlipala <adamc@hcoop.net>
date Tue, 07 Apr 2009 16:22:11 -0400
parents 4e260887d8f2
children 5819fb63c93a
line wrap: on
line diff
--- a/demo/chat.ur	Tue Apr 07 16:14:31 2009 -0400
+++ b/demo/chat.ur	Tue Apr 07 16:22:11 2009 -0400
@@ -4,6 +4,7 @@
 
 sequence s
 table t : { Id : int, Title : string, Room : Room.topic }
+  PRIMARY KEY Id
 
 fun chat id =
     r <- oneRow (SELECT t.Title, t.Room FROM t WHERE t.Id = {[id]});