diff src/mysql.sml @ 1295:929981850d9d

'tryDml' works with Postgres
author Adam Chlipala <adam@chlipala.net>
date Tue, 07 Sep 2010 09:06:13 -0400
parents acabf3935060
children 19e8e3d556d6
line wrap: on
line diff
--- a/src/mysql.sml	Tue Sep 07 08:28:07 2010 -0400
+++ b/src/mysql.sml	Tue Sep 07 09:06:13 2010 -0400
@@ -1,4 +1,4 @@
-(* Copyright (c) 2009, Adam Chlipala
+(* Copyright (c) 2009-2010, Adam Chlipala
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -1202,7 +1202,7 @@
                                     string ": Error executing DML: %s\\n%s\", ",
                                     dml,
                                     string ", mysql_error(conn->conn));"]
-           | Settings.None => string "uw_errmsg = mysql_error(conn->conn);",
+           | Settings.None => string "uw_set_error_message(ctx, mysql_error(conn->conn));",
          newline,
          newline]