diff options
Diffstat (limited to '')
| -rw-r--r-- | sqlite.zig | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1402,7 +1402,7 @@ test "sqlite: failing open" { | |||
| 1402 | .open_flags = .{}, | 1402 | .open_flags = .{}, |
| 1403 | .mode = .{ .File = "/tmp/not_existing.db" }, | 1403 | .mode = .{ .File = "/tmp/not_existing.db" }, |
| 1404 | }); | 1404 | }); |
| 1405 | testing.expectError(error.CannotOpenDatabase, res); | 1405 | testing.expectError(error.SQLiteCantOpen, res); |
| 1406 | } | 1406 | } |
| 1407 | 1407 | ||
| 1408 | test "sqlite: failing prepare statement" { | 1408 | test "sqlite: failing prepare statement" { |
| @@ -1410,7 +1410,7 @@ test "sqlite: failing prepare statement" { | |||
| 1410 | try db.init(initOptions()); | 1410 | try db.init(initOptions()); |
| 1411 | 1411 | ||
| 1412 | const result = db.prepare("SELECT id FROM foobar"); | 1412 | const result = db.prepare("SELECT id FROM foobar"); |
| 1413 | testing.expectError(error.CannotPrepareStatement, result); | 1413 | testing.expectError(error.SQLiteError, result); |
| 1414 | 1414 | ||
| 1415 | const detailed_err = db.getDetailedError(); | 1415 | const detailed_err = db.getDetailedError(); |
| 1416 | testing.expectEqual(@as(usize, 1), detailed_err.code); | 1416 | testing.expectEqual(@as(usize, 1), detailed_err.code); |