diff options
Diffstat (limited to '')
| -rw-r--r-- | sqlite.zig | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -340,7 +340,7 @@ pub const Db = struct { | |||
| 340 | switch (options.mode) { | 340 | switch (options.mode) { |
| 341 | .File => |path| { | 341 | .File => |path| { |
| 342 | var db: ?*c.sqlite3 = undefined; | 342 | var db: ?*c.sqlite3 = undefined; |
| 343 | const result = c.sqlite3_open_v2(path, &db, flags, null); | 343 | const result = c.sqlite3_open_v2(path.ptr, &db, flags, null); |
| 344 | if (result != c.SQLITE_OK or db == null) { | 344 | if (result != c.SQLITE_OK or db == null) { |
| 345 | if (db) |v| { | 345 | if (db) |v| { |
| 346 | diags.err = getLastDetailedErrorFromDb(v); | 346 | diags.err = getLastDetailedErrorFromDb(v); |