6973062b94
LuaDBI is a database interface library for Lua. It is designed to provide a RDBMS agnostic API for handling database operations. LuaDBI also provides support for prepared statement handles, placeholders and bind parameters for all database operations. ok sthen@
25 lines
588 B
Plaintext
25 lines
588 B
Plaintext
$OpenBSD: patch-dbd_sqlite3_dbd_sqlite3_h,v 1.1.1.1 2012/08/16 15:21:30 jasper Exp $
|
|
|
|
Fix DBD.SQLite3 transaction handling
|
|
From upstream svn rev 75
|
|
|
|
--- dbd/sqlite3/dbd_sqlite3.h.orig Fri Dec 19 07:33:32 2008
|
|
+++ dbd/sqlite3/dbd_sqlite3.h Sun Jul 22 22:23:54 2012
|
|
@@ -10,14 +10,15 @@
|
|
typedef struct _connection {
|
|
sqlite3 *sqlite;
|
|
int autocommit;
|
|
+ int txn_in_progress;
|
|
} connection_t;
|
|
|
|
/*
|
|
* statement object
|
|
*/
|
|
typedef struct _statement {
|
|
+ connection_t *conn;
|
|
sqlite3_stmt *stmt;
|
|
- sqlite3 *sqlite;
|
|
int more_data;
|
|
int affected;
|
|
} statement_t;
|