Commit 3460fa3
committed
Patch Turso stub macro so pdo_sqlite can connect
Turso's stub!() macro expands to todo!() and aborts the PHP process
whenever pdo_sqlite calls an unimplemented sqlite3_* function. The first
one hit is sqlite3_set_authorizer during PDO construction, so the
tests can't even start.
Rewrite the macro via sed before building so stubbed functions return
a zeroed value of their return type (0 / SQLITE_OK for ints, NULL for
pointers). This lets the driver proceed past optional calls and
exercise parts of Turso that are actually implemented.1 parent 47c9341 commit 3460fa3
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
47 | 61 | | |
48 | 62 | | |
49 | 63 | | |
| |||
0 commit comments