From 7e10920b75383cd953898468385ae29e76bf184d Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Thu, 16 Jul 2009 13:59:30 -0400 Subject: MySQL accepts generated demo DDL --- src/mono_opt.sml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mono_opt.sml') 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 -- cgit v1.2.3