Skip to content

Commit

Permalink
fix crsqlite: remove pLibsqlModule references
Browse files Browse the repository at this point in the history
  • Loading branch information
avinassh committed Feb 15, 2024
1 parent 7972794 commit b2c3142
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libsql-sqlite3/ext/crr/rs/core/src/create_cl_set_vtab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ fn connect_create_shared(
nRef: 0,
pModule: core::ptr::null(),
zErrMsg: core::ptr::null_mut(),
#[cfg(feature = "libsql")]
pLibsqlModule: core::ptr::null_mut(),
},
base_table_name: base_name_from_virtual_name(args.table_name).to_owned(),
db_name: args.database_name.to_owned(),
Expand Down Expand Up @@ -259,6 +257,8 @@ static MODULE: sqlite_nostd::module = sqlite_nostd::module {
xRollbackTo: None,
xShadowName: None,
xIntegrity: None,
reserved: [None, None, None, None, None],
xPreparedSql: None,
};

pub fn create_module(db: *mut sqlite::sqlite3) -> Result<ResultCode, ResultCode> {
Expand Down
4 changes: 2 additions & 2 deletions libsql-sqlite3/ext/crr/rs/core/src/unpack_columns_vtab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ extern "C" fn connect(
nRef: 0,
pModule: core::ptr::null(),
zErrMsg: core::ptr::null_mut(),
#[cfg(feature = "libsql")]
pLibsqlModule: core::ptr::null_mut(),
}));
let _ = sqlite::vtab_config(db, sqlite::INNOCUOUS);
}
Expand Down Expand Up @@ -256,6 +254,8 @@ static MODULE: sqlite_nostd::module = sqlite_nostd::module {
xRollbackTo: None,
xShadowName: None,
xIntegrity: None,
reserved: [None, None, None, None, None],
xPreparedSql: None,
};

/**
Expand Down
1 change: 1 addition & 0 deletions libsql-sqlite3/ext/crr/src/changes-vtab.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ sqlite3_module crsql_changesModule = {
/* xShadowName */ 0
#ifdef LIBSQL
,
/* reserved */ NULL,
/* xPreparedSql */ 0
#endif
};

0 comments on commit b2c3142

Please sign in to comment.