summaryrefslogtreecommitdiff
path: root/src/postgres.sml
diff options
context:
space:
mode:
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,