diff src/mono_print.sml @ 707:d8217b4cb617

PRIMARY KEY
author Adam Chlipala <adamc@hcoop.net>
date Tue, 07 Apr 2009 16:14:31 -0400
parents 70cbdcf5989b
children f152f215a02c
line wrap: on
line diff
--- a/src/mono_print.sml	Tue Apr 07 15:04:07 2009 -0400
+++ b/src/mono_print.sml	Tue Apr 07 16:14:31 2009 -0400
@@ -403,22 +403,26 @@
                                           space,
                                           p_typ env t]
 
-      | DTable (s, xts, e) => box [string "(* SQL table ",
-                                   string s,
-                                   space,
-                                   string ":",
-                                   space,
-                                   p_list (fn (x, t) => box [string x,
-                                                             space,
-                                                             string ":",
-                                                             space,
-                                                             p_typ env t]) xts,
-                                   space,
-                                   string "constraints",
-                                   space,
-                                   p_exp env e,
-                                   space,
-                                   string "*)"]
+      | DTable (s, xts, pe, ce) => box [string "(* SQL table ",
+                                        string s,
+                                        space,
+                                        string ":",
+                                        space,
+                                        p_list (fn (x, t) => box [string x,
+                                                                  space,
+                                                                  string ":",
+                                                                  space,
+                                                                  p_typ env t]) xts,
+                                        space,
+                                        string "keys",
+                                        space,
+                                        p_exp env pe,
+                                        space,
+                                        string "constraints",
+                                        space,
+                                        p_exp env ce,
+                                        space,
+                                        string "*)"]
       | DSequence s => box [string "(* SQL sequence ",
                             string s,
                             string "*)"]