mirror of https://github.com/Gnucash/gnucash
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17473 57a11ea4-9604-0410-9ed3-97b8803252fd2.4
parent
390fbb00e7
commit
0bf3700fa2
@ -0,0 +1,26 @@
|
||||
Index: dbd.h
|
||||
===================================================================
|
||||
RCS file: /cvsroot/libdbi/libdbi/include/dbi/dbd.h,v
|
||||
retrieving revision 1.29
|
||||
diff -u -r1.29 dbd.h
|
||||
--- include/dbi/dbd.h 15 Aug 2005 19:18:18 -0000 1.29
|
||||
+++ include/dbi/dbd.h 16 Aug 2008 20:20:33 -0000
|
||||
@@ -52,7 +52,7 @@
|
||||
size_t dbd_quote_binary(dbi_conn_t *conn, const unsigned char *orig, size_t from_length, unsigned char **ptr_dest);
|
||||
size_t dbd_conn_quote_string(dbi_conn_t *conn, const char *orig, char *dest);
|
||||
const char *dbd_select_db(dbi_conn_t *conn, const char *db);
|
||||
-int dbd_geterror(dbi_conn_t *conn, int *errno, char **errstr);
|
||||
+int dbd_geterror(dbi_conn_t *conn, int *err_no, char **errstr);
|
||||
unsigned long long dbd_get_seq_last(dbi_conn_t *conn, const char *sequence);
|
||||
unsigned long long dbd_get_seq_next(dbi_conn_t *conn, const char *sequence);
|
||||
int dbd_ping(dbi_conn_t *conn);
|
||||
@@ -63,7 +63,7 @@
|
||||
void _dbd_result_add_field(dbi_result_t *result, unsigned int fieldidx, char *name, unsigned short type, unsigned int attribs);
|
||||
dbi_row_t *_dbd_row_allocate(unsigned int numfields);
|
||||
void _dbd_row_finalize(dbi_result_t *result, dbi_row_t *row, unsigned long long rowidx);
|
||||
-void _dbd_internal_error_handler(dbi_conn_t *conn, const char *errmsg, const int errno);
|
||||
+void _dbd_internal_error_handler(dbi_conn_t *conn, const char *errmsg, const int err_no);
|
||||
dbi_result_t *_dbd_result_create_from_stringarray(dbi_conn_t *conn, unsigned long long numrows_matched, const char **stringarray);
|
||||
void _dbd_register_driver_cap(dbi_driver_t *driver, const char *capname, int value);
|
||||
void _dbd_register_conn_cap(dbi_conn_t *conn, const char *capname, int value);
|
||||
|
||||
@ -0,0 +1,11 @@
|
||||
--- drivers/sqlite3/Makefile.in.save Mon Mar 3 12:41:56 2008
|
||||
+++ drivers/sqlite3/Makefile.in Sat Aug 16 17:10:11 2008
|
||||
@@ -264,7 +264,7 @@
|
||||
@HAVE_SQLITE3_TRUE@sqlite3_sources = dbd_sqlite3.c
|
||||
INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/include @DBI_INCLUDE@ @SQLITE3_INCLUDE@
|
||||
lib_LTLIBRARIES = $(sqlite3_ltlibs)
|
||||
-libdbdsqlite3_la_LDFLAGS = $(sqlite3_ldflags) @SQLITE3_LDFLAGS@ @SQLITE3_LIBS@ @LIBADD_LIBDBI@
|
||||
+libdbdsqlite3_la_LDFLAGS = $(sqlite3_ldflags) @SQLITE3_LDFLAGS@ @SQLITE3_LIBS@ @LIBADD_LIBDBI@ -no-undefined
|
||||
libdbdsqlite3_la_SOURCES = $(sqlite3_sources)
|
||||
libdbdsqlite3_la_DEPENDENCIES = dbd_sqlite3.h
|
||||
EXTRA_DIST = dbd_sqlite3.c dbd_sqlite3.h AUTHORS TODO README dbd_sqlite3.sgml dbd_sqlite3.pdf dbd_sqlite3/*
|
||||
@ -0,0 +1,24 @@
|
||||
Index: dbd_sqlite3.c
|
||||
===================================================================
|
||||
RCS file: /cvsroot/libdbi-drivers/libdbi-drivers/drivers/sqlite3/dbd_sqlite3.c,v
|
||||
retrieving revision 1.31
|
||||
diff -u -r1.31 dbd_sqlite3.c
|
||||
--- drivers/sqlite3/dbd_sqlite3.c 13 Aug 2008 22:56:03 -0000 1.31
|
||||
+++ drivers/sqlite3/dbd_sqlite3.c 16 Aug 2008 20:23:23 -0000
|
||||
@@ -1369,11 +1369,11 @@
|
||||
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 */
|
||||
|
||||
- *errno = sqlite3_errcode((sqlite3 *)conn->connection);
|
||||
+ *err_no = sqlite3_errcode((sqlite3 *)conn->connection);
|
||||
*errstr = strdup((char*)sqlite3_errmsg((sqlite3 *)conn->connection));
|
||||
return 3;
|
||||
}
|
||||
|
||||
Loading…
Reference in new issue