diff options
Diffstat (limited to '')
| -rw-r--r-- | sqlite.zig | 7 |
1 files changed, 7 insertions, 0 deletions
| @@ -1249,6 +1249,13 @@ pub const DynamicStatement = struct { | |||
| 1249 | diags.err = getLastDetailedErrorFromDb(db.db); | 1249 | diags.err = getLastDetailedErrorFromDb(db.db); |
| 1250 | return errors.errorFromResultCode(result); | 1250 | return errors.errorFromResultCode(result); |
| 1251 | } | 1251 | } |
| 1252 | if (tmp == null) { | ||
| 1253 | diags.err = .{ | ||
| 1254 | .code = 0, | ||
| 1255 | .message = "the input query is not valid SQL (empty string or a comment)", | ||
| 1256 | }; | ||
| 1257 | return error.SQLiteError; | ||
| 1258 | } | ||
| 1252 | break :blk tmp.?; | 1259 | break :blk tmp.?; |
| 1253 | }; | 1260 | }; |
| 1254 | return Self{ | 1261 | return Self{ |