diff src/settings.sig @ 873:41971801b62d

MySQL query gets up to C linking
author Adam Chlipala <adamc@hcoop.net>
date Sun, 12 Jul 2009 13:16:05 -0400
parents 9654bce27cff
children 3c7b48040dcf
line wrap: on
line diff
--- a/src/settings.sig	Tue Jun 30 16:17:32 2009 -0400
+++ b/src/settings.sig	Sun Jul 12 13:16:05 2009 -0400
@@ -112,7 +112,7 @@
            | Client
            | Nullable of sql_type
 
-    val p_sql_type : sql_type -> string
+    val p_sql_ctype : sql_type -> string
     val isBlob : sql_type -> bool
     val isNotNull : sql_type -> bool
 
@@ -125,18 +125,19 @@
          (* Pass these linker arguments *)
          global_init : Print.PD.pp_desc,
          (* Define uw_client_init() *)
+         p_sql_type : sql_type -> string,
          init : {dbstring : string,
                  prepared : (string * int) list,
                  tables : (string * (string * sql_type) list) list,
                  views : (string * (string * sql_type) list) list,
                  sequences : string list} -> Print.PD.pp_desc,
          (* Define uw_db_init(), uw_db_close(), uw_db_begin(), uw_db_commit(), and uw_db_rollback() *)
-         query : {loc : ErrorMsg.span, numCols : int,
+         query : {loc : ErrorMsg.span, cols : sql_type list,
                   doCols : ({wontLeakStrings : bool, col : int, typ : sql_type} -> Print.PD.pp_desc)
                            -> Print.PD.pp_desc}
                  -> Print.PD.pp_desc,
          queryPrepared : {loc : ErrorMsg.span, id : int, query : string,
-                          inputs : sql_type list, numCols : int,
+                          inputs : sql_type list, cols : sql_type list,
                           doCols : ({wontLeakStrings : bool, col : int, typ : sql_type} -> Print.PD.pp_desc)
                                    -> Print.PD.pp_desc}
                          -> Print.PD.pp_desc,