Mercurial > urweb
changeset 2103:661b531f55bd
Fix arguments to PQprepare()
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Wed, 07 Jan 2015 09:25:13 -0500 (2015-01-07) |
parents | 0bd46c9e363f |
children | 7755f00a4fc3 |
files | src/mysql.sml src/postgres.sml src/sqlite.sml |
diffstat | 3 files changed, 4 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/mysql.sml Sat Jan 03 10:28:36 2015 -0500 +++ b/src/mysql.sml Wed Jan 07 09:25:13 2015 -0500 @@ -446,7 +446,7 @@ newline, newline, - p_list_sepi newline (fn i => fn (s, n) => + p_list_sepi newline (fn i => fn (s, _) => let fun uhoh this s args = box [p_list_sepi (box [])
--- a/src/postgres.sml Sat Jan 03 10:28:36 2015 -0500 +++ b/src/postgres.sml Wed Jan 07 09:25:13 2015 -0500 @@ -340,14 +340,12 @@ 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,