summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Gracen2025-06-08 11:43:56 -0600
committerGravatar Gracen2025-06-08 11:43:56 -0600
commit36934f9afe4e993cc7c0cbdc54f39b8e5dab5293 (patch)
treec9d0a3c2789ad5a540dfc75e0670b0570b859aa0
parentfix https://github.com/vrischmann/zig-sqlite/issues/187 (diff)
downloadzig-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.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/query.zig b/query.zig
index e1f3631..80d8981 100644
--- a/query.zig
+++ b/query.zig
@@ -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;