Skip to content

Commit e75184b

Browse files
committed
libsql-sqlite3: Fix xPrepareSql init in test8.c
The module struct initializer for xPrepareSql is wrong since commit d178de8 ("bugfix: reset modifications of `sqlite3_vtab` (#1027)") because it assings the xPrepareSql as the xIntegrity hook: ``` /home/runner/work/libsql/libsql/libsql-sqlite3/src/test8.c:1364:3: warning: initialization of 'int (*)(sqlite3_vtab *, const char *, const char *, int, char **)' from incompatible pointer type 'int (*)(sqlite3_vtab_cursor *, const char *)' [-Wincompatible-pointer-types] 1364 | echoPreparedSql, | ^~~~~~~~~~~~~~~ /home/runner/work/libsql/libsql/libsql-sqlite3/src/test8.c:1364:3: note: (near initialization for 'echoModuleV2.xIntegrity') ```
1 parent 7521bc0 commit e75184b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

libsql-sqlite3/src/test8.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1361,8 +1361,13 @@ static sqlite3_module echoModuleV2 = {
13611361
echoRelease,
13621362
echoRollbackTo,
13631363
0, /* xShadowName */
1364+
0, /* xIntegrity */
1365+
0,
1366+
0,
1367+
0,
1368+
0,
1369+
0,
13641370
echoPreparedSql,
1365-
0 /* xIntegrity */
13661371
};
13671372

13681373
/*

0 commit comments

Comments
 (0)