Skip to content

Commit

Permalink
specify the sqlite3_module iVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
rvianello committed Jan 20, 2024
1 parent 4b22503 commit 31cfb8c
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/mol_chemtransforms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ static int molReplSubstructsColumn(sqlite3_vtab_cursor *pCursor, sqlite3_context
** The mol replace substructs module
*/
static sqlite3_module molReplSubstructsModule = {
0, /* iVersion */
3, /* iVersion */
0, /* xCreate - create a table */ /* null because eponymous-only */
molReplSubstructsConnect, /* xConnect - connect to an existing table */
molReplSubstructsBestIndex, /* xBestIndex - Determine search strategy */
Expand Down
2 changes: 1 addition & 1 deletion src/mol_props.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ static int molPropsRowid(sqlite3_vtab_cursor *pCursor, sqlite_int64 *pRowid)
** The mol props module, collecting the methods that implement mol_prop_list as an eponymous virtual table
*/
static sqlite3_module molPropsModule = {
0, /* iVersion */
3, /* iVersion */
0, /* xCreate - create a table */ /* null because eponymous-only */
molPropsConnect, /* xConnect - connect to an existing table */
molPropsBestIndex, /* xBestIndex - Determine search strategy */
Expand Down
2 changes: 1 addition & 1 deletion src/periodic_table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ static int pteRowid(sqlite3_vtab_cursor *pCursor, sqlite_int64 *pRowid)
** The periodic table module, collecting the methods that operate on the PeriodicTable vtab
*/
static sqlite3_module pteModule = {
0, /* iVersion */
3, /* iVersion */
0, /* xCreate - create a table */ /* null because eponymous-only */
pteConnect, /* xConnect - connect to an existing table */
pteBestIndex, /* xBestIndex - Determine search strategy */
Expand Down
2 changes: 1 addition & 1 deletion src/rdtree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ static int rdtreeRename(sqlite3_vtab *vtab, const char *newname)


static sqlite3_module rdtreeModule = {
0, /* iVersion */
3, /* iVersion */
rdtreeCreate, /* xCreate - create a table */
rdtreeConnect, /* xConnect - connect to an existing table */
rdtreeBestIndex, /* xBestIndex - Determine search strategy */
Expand Down
2 changes: 1 addition & 1 deletion src/sdf_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ static int sdfReaderRowid(sqlite3_vtab_cursor *pCursor, sqlite_int64 *pRowid)
** The SDF reader module
*/
static sqlite3_module sdfReaderModule = {
0, /* iVersion */
3, /* iVersion */
sdfReaderInit, /* xCreate - create a table */
sdfReaderInit, /* xConnect - connect to an existing table */
sdfReaderBestIndex, /* xBestIndex - Determine search strategy */
Expand Down
2 changes: 1 addition & 1 deletion src/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ static int settingsUpdate(sqlite3_vtab */*pVTab*/, int argc, sqlite3_value **arg
** The settings module, collecting the methods that operate on the Settings vtab
*/
static sqlite3_module settingsModule = {
0, /* iVersion */
3, /* iVersion */
0, /* xCreate - create a table */ /* null because eponymous-only */
settingsConnect, /* xConnect - connect to an existing table */
settingsBestIndex, /* xBestIndex - Determine search strategy */
Expand Down
2 changes: 1 addition & 1 deletion src/smi_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ static int smiReaderRowid(sqlite3_vtab_cursor *pCursor, sqlite_int64 *pRowid)
** The smiles file reader module
*/
static sqlite3_module smiReaderModule = {
0, /* iVersion */
3, /* iVersion */
smiReaderInit, /* xCreate - create a table */
smiReaderInit, /* xConnect - connect to an existing table */
smiReaderBestIndex, /* xBestIndex - Determine search strategy */
Expand Down

0 comments on commit 31cfb8c

Please sign in to comment.