mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Patch for mysql driver to fix win32 compilation issue
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18121 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
9f5eb1e794
commit
ff42b2566f
27
packaging/win32/libdbi-drivers-dbd_mysql.c.patch
Executable file
27
packaging/win32/libdbi-drivers-dbd_mysql.c.patch
Executable file
@ -0,0 +1,27 @@
|
||||
Index: dbd_mysql.c
|
||||
===================================================================
|
||||
RCS file: /cvsroot/libdbi-drivers/libdbi-drivers/drivers/mysql/dbd_mysql.c,v
|
||||
retrieving revision 1.31
|
||||
diff -u -r1.31 dbd_mysql.c
|
||||
--- drivers/mysql/dbd_mysql.c 13 Aug 2008 22:56:03 -0000 1.31
|
||||
+++ drivers/mysql/dbd_mysql.c 16 Aug 2008 20:23:23 -0000
|
||||
@@ -553,15 +553,15 @@
|
||||
return db;
|
||||
}
|
||||
|
||||
-int dbd_geterror(dbi_conn_t *conn, int *errno, char **errstr) {
|
||||
- /* put error number into errno, error string into errstr
|
||||
- * return 0 if error, 1 if errno filled, 2 if errstr filled, 3 if both errno and errstr filled */
|
||||
+int dbd_geterror(dbi_conn_t *conn, int *err_no, char **errstr) {
|
||||
+ /* put error number into err_no, error string into errstr
|
||||
+ * return 0 if error, 1 if err_no filled, 2 if errstr filled, 3 if both err_no and errstr filled */
|
||||
|
||||
if (strcmp("",mysql_error((MYSQL *)conn->connection)) == 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
- *errno = mysql_errno((MYSQL *)conn->connection);
|
||||
+ *err_no = mysql_errno((MYSQL *)conn->connection);
|
||||
*errstr = strdup(mysql_error((MYSQL *)conn->connection));
|
||||
return 3;
|
||||
}
|
Loading…
Reference in New Issue
Block a user