aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/postgres.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2015-01-07 09:25:13 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2015-01-07 09:25:13 -0500
commit2127b8bbe36c8864919c03a8f09aee5db6595c72 (patch)
treeb5d0772c9e5df9006b1929f81ba46b1f7422314b /src/postgres.sml
parentf1204c9d8702aa2b394d777c0552f5e9cc0e9fce (diff)
Fix arguments to PQprepare()
Diffstat (limited to 'src/postgres.sml')
-rw-r--r--src/postgres.sml6
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,