summaryrefslogtreecommitdiff
path: root/src/cjr_print.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2015-05-10 12:56:19 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2015-05-10 12:56:19 -0400
commit9b09c485154e2650ffab62259f39cb5d0496921b (patch)
tree2bfb9ebc9bf9cc98ae2bf7ed344a44e1ba39058d /src/cjr_print.sml
parent51b0b40ce02c56b2dd53191b32cd55c6ce22a92f (diff)
Fix .sql generation to honor 'noMangleSql' in column names
Diffstat (limited to 'src/cjr_print.sml')
-rw-r--r--src/cjr_print.sml3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cjr_print.sml b/src/cjr_print.sml
index b3b12fe8..9c456863 100644
--- a/src/cjr_print.sml
+++ b/src/cjr_print.sml
@@ -3665,8 +3665,7 @@ fun p_sql env (ds, _) =
let
val t = sql_type_in env t
in
- box [string "uw_",
- string (CharVector.map Char.toLower x),
+ box [string (Settings.mangleSql (CharVector.map Char.toLower x)),
space,
string (#p_sql_type (Settings.currentDbms ()) t),
case t of