diff options
| author | 2025-06-08 11:43:56 -0600 | |
|---|---|---|
| committer | 2025-06-08 11:43:56 -0600 | |
| commit | 36934f9afe4e993cc7c0cbdc54f39b8e5dab5293 (patch) | |
| tree | c9d0a3c2789ad5a540dfc75e0670b0570b859aa0 | |
| parent | fix https://github.com/vrischmann/zig-sqlite/issues/187 (diff) | |
| download | zig-sqlite-36934f9afe4e993cc7c0cbdc54f39b8e5dab5293.tar.gz zig-sqlite-36934f9afe4e993cc7c0cbdc54f39b8e5dab5293.tar.xz zig-sqlite-36934f9afe4e993cc7c0cbdc54f39b8e5dab5293.zip | |
fix bug from previous commit, zig doesn't look ahead for type inference
| -rw-r--r-- | query.zig | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -56,7 +56,7 @@ pub fn ParsedQuery(comptime tmp_query: []const u8) type { | |||
| 56 | // This holds the starting character of the string while | 56 | // This holds the starting character of the string while |
| 57 | // state is .inside_string so that we know which type of | 57 | // state is .inside_string so that we know which type of |
| 58 | // string we're exiting from | 58 | // string we're exiting from |
| 59 | var string_starting_character = null; | 59 | var string_starting_character: ?u8 = null; |
| 60 | 60 | ||
| 61 | var current_bind_marker_type: [256]u8 = undefined; | 61 | var current_bind_marker_type: [256]u8 = undefined; |
| 62 | var current_bind_marker_type_pos = 0; | 62 | var current_bind_marker_type_pos = 0; |