@@ -165,16 +165,6 @@ inline bool IS_32BIT_INT(double num) {
165165 return Nan::ThrowError(_err); \
166166 }
167167
168- // Should be the same as STATEMENT_BIND, but uses the transient_buffers option.
169- #define STATEMENT_BIND_T_BUFFERS (stmt , info , info_length , bind_type ) \
170- Binder _binder(stmt->st_handle, bind_type, true); \
171- _binder.Bind(info, info_length, stmt); \
172- const char* _err = _binder.GetError(); \
173- if (_err) { \
174- STATEMENT_CLEAR_BINDINGS(stmt); \
175- return Nan::ThrowError(_err); \
176- }
177-
178168// Common bind logic for transactions.
179169#define TRANSACTION_BIND (trans , info , info_length , bind_type ) \
180170 MultiBinder _binder(trans->handles, trans->handle_count, bind_type); \
@@ -186,7 +176,7 @@ inline bool IS_32BIT_INT(double num) {
186176 }
187177
188178// The macro-instruction that runs before an SQLite request.
189- #define QUERY_START (obj , object_name , BIND_MACRO , info , info_length ) \
179+ #define QUERY_START (obj , object_name , BIND_MACRO , bind_type , info , info_length )\
190180 if (obj->db->in_each) { \
191181 return Nan::ThrowTypeError( \
192182 "This database connection is busy executing a query."); \
@@ -197,7 +187,7 @@ inline bool IS_32BIT_INT(double num) {
197187 } \
198188 if (!(obj->state & CONFIG_LOCKED)) {obj->state |= CONFIG_LOCKED;} \
199189 if (!(obj->state & BOUND)) { \
200- BIND_MACRO(obj, info, info_length, SQLITE_STATIC); \
190+ BIND_MACRO(obj, info, info_length, bind_type); \
201191 } else if (info_length > 0) { \
202192 return Nan::ThrowTypeError( \
203193 "This " #object_name " already has bound parameters."); \
0 commit comments