Commit e75184b
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
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1361 | 1361 | | |
1362 | 1362 | | |
1363 | 1363 | | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
1364 | 1370 | | |
1365 | | - | |
1366 | 1371 | | |
1367 | 1372 | | |
1368 | 1373 | | |
| |||
0 commit comments