diff options
author | Adam Chlipala <adam@chlipala.net> | 2015-01-07 09:25:13 -0500 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2015-01-07 09:25:13 -0500 |
commit | 20a175809da5adf75908e0d6fef51738e6d0363c (patch) | |
tree | b5d0772c9e5df9006b1929f81ba46b1f7422314b /src/postgres.sml | |
parent | c61f4d898627f5b840ed5069b952c1647aa169dc (diff) |
Fix arguments to PQprepare()
Diffstat (limited to 'src/postgres.sml')
-rw-r--r-- | src/postgres.sml | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/postgres.sml b/src/postgres.sml index b97226c1..6df0331a 100644 --- a/src/postgres.sml +++ b/src/postgres.sml @@ -340,14 +340,12 @@ fun init {dbstring, prepared = ss, tables, views, sequences} = newline, newline, - p_list_sepi newline (fn i => fn (s, n) => + p_list_sepi newline (fn i => fn (s, _) => box [string "res = PQprepare(conn, \"uw", string (Int.toString i), string "\", \"", string (Prim.toCString s), - string "\", ", - string (Int.toString n), - string ", NULL);", + string "\", 0, NULL);", newline, string "if (PQresultStatus(res) != PGRES_COMMAND_OK) {", newline, |