diff options
| -rw-r--r-- | sqlite.zig | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -1161,7 +1161,7 @@ pub const DynamicStatement = struct { | |||
| 1161 | else => @compileError("cannot bind field " ++ field_name ++ " of type array of " ++ @typeName(arr.child)), | 1161 | else => @compileError("cannot bind field " ++ field_name ++ " of type array of " ++ @typeName(arr.child)), |
| 1162 | }, | 1162 | }, |
| 1163 | .Optional => |opt| if (field) |non_null_field| { | 1163 | .Optional => |opt| if (field) |non_null_field| { |
| 1164 | try self.bindField(opt.child, options, field_name, i, non_null_field); | 1164 | return try self.bindField(opt.child, options, field_name, i, non_null_field); |
| 1165 | } else optional_null: { | 1165 | } else optional_null: { |
| 1166 | break :optional_null c.sqlite3_bind_null(self.stmt, column); | 1166 | break :optional_null c.sqlite3_bind_null(self.stmt, column); |
| 1167 | }, | 1167 | }, |