diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-07-16 13:59:30 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-07-16 13:59:30 -0400 |
commit | 7e10920b75383cd953898468385ae29e76bf184d (patch) | |
tree | ab868a5482914e1edd50ddce3be30c1a02a19de7 /src/mono_opt.sml | |
parent | 662c635acece462b9a3d8f95f30716f9904b5ad5 (diff) |
MySQL accepts generated demo DDL
Diffstat (limited to 'src/mono_opt.sml')
-rw-r--r-- | src/mono_opt.sml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mono_opt.sml b/src/mono_opt.sml index 9288b820..bf39b311 100644 --- a/src/mono_opt.sml +++ b/src/mono_opt.sml @@ -83,8 +83,8 @@ val urlifyString = String.translate (fn #" " => "+" "%" ^ hexIt ch) -fun sqlifyInt n = attrifyInt n ^ "::" ^ #p_sql_type (Settings.currentDbms ()) Settings.Int -fun sqlifyFloat n = attrifyFloat n ^ "::" ^ #p_sql_type (Settings.currentDbms ()) Settings.Float +fun sqlifyInt n = #p_cast (Settings.currentDbms ()) (attrifyInt n, Settings.Int) +fun sqlifyFloat n = #p_cast (Settings.currentDbms ()) (attrifyFloat n, Settings.Float) fun sqlifyString s = #sqlifyString (Settings.currentDbms ()) s |