Skip to content

Commit 2a8507d

Browse files
committed
libsql-ffi: Update bundled SQLite
1 parent a07b9b1 commit 2a8507d

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

libsql-ffi/bundled/SQLite3MultipleCiphers/src/sqlite3.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92309,10 +92309,13 @@ SQLITE_API int sqlite3_step(sqlite3_stmt *pStmt){
9230992309
if( vdbeSafetyNotNull(v) ){
9231092310
return SQLITE_MISUSE_BKPT;
9231192311
}
92312+
db = v->db;
9231292313
if( v->isInterrupted ){
92313-
return SQLITE_INTERRUPT;
92314+
rc = SQLITE_INTERRUPT;
92315+
v->rc = rc;
92316+
db->errCode = rc;
92317+
return rc;
9231492318
}
92315-
db = v->db;
9231692319
sqlite3_mutex_enter(db->mutex);
9231792320
while( (rc = sqlite3Step(v))==SQLITE_SCHEMA
9231892321
&& cnt++ < SQLITE_MAX_SCHEMA_RETRY ){

libsql-ffi/bundled/bindings/session_bindgen.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1555,6 +1555,9 @@ extern "C" {
15551555
extern "C" {
15561556
pub fn sqlite3_reset(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int;
15571557
}
1558+
extern "C" {
1559+
pub fn libsql_stmt_interrupt(stmt: *mut sqlite3_stmt);
1560+
}
15581561
extern "C" {
15591562
pub fn sqlite3_create_function(
15601563
db: *mut sqlite3,

libsql-ffi/bundled/src/sqlite3.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92309,10 +92309,13 @@ SQLITE_API int sqlite3_step(sqlite3_stmt *pStmt){
9230992309
if( vdbeSafetyNotNull(v) ){
9231092310
return SQLITE_MISUSE_BKPT;
9231192311
}
92312+
db = v->db;
9231292313
if( v->isInterrupted ){
92313-
return SQLITE_INTERRUPT;
92314+
rc = SQLITE_INTERRUPT;
92315+
v->rc = rc;
92316+
db->errCode = rc;
92317+
return rc;
9231492318
}
92315-
db = v->db;
9231692319
sqlite3_mutex_enter(db->mutex);
9231792320
while( (rc = sqlite3Step(v))==SQLITE_SCHEMA
9231892321
&& cnt++ < SQLITE_MAX_SCHEMA_RETRY ){

0 commit comments

Comments
 (0)