Mercurial > urweb
diff src/cjr_print.sml @ 754:8688e01ae469
A view query works
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Tue, 28 Apr 2009 15:04:37 -0400 |
parents | e42f08f96eb5 |
children | 8ce31c052dce |
line wrap: on
line diff
--- a/src/cjr_print.sml Tue Apr 28 14:02:23 2009 -0400 +++ b/src/cjr_print.sml Tue Apr 28 15:04:37 2009 -0400 @@ -2069,6 +2069,15 @@ string x, string " */", newline] + | DView (x, _, s) => box [string "/* SQL view ", + string x, + space, + string "AS", + space, + string s, + space, + string " */", + newline] | DDatabase {name, expunge, initialize} => box [string "static void uw_db_validate(uw_context);", newline, @@ -3089,6 +3098,17 @@ string ";", newline, newline] + | DView (s, xts, q) => + box [string "CREATE VIEW", + space, + string s, + space, + string "AS", + space, + string q, + string ";", + newline, + newline] | _ => box [] in (pp, E.declBinds env dAll)