summaryrefslogtreecommitdiff
path: root/query.zig
diff options
context:
space:
mode:
authorGravatar Jari Vetoniemi2023-12-19 11:28:38 +0900
committerGravatar Jari Vetoniemi2023-12-19 18:12:28 +0900
commit228558f3970c70c90f15cf9ee6e22e07f7190bfb (patch)
tree8e41576cf6b1d2d43877bb490c86af4dfc0adfec /query.zig
parentquery: parse names of bind parameters (diff)
downloadzig-sqlite-228558f3970c70c90f15cf9ee6e22e07f7190bfb.tar.gz
zig-sqlite-228558f3970c70c90f15cf9ee6e22e07f7190bfb.tar.xz
zig-sqlite-228558f3970c70c90f15cf9ee6e22e07f7190bfb.zip
query: fix zig fmt errors
Diffstat (limited to 'query.zig')
-rw-r--r--query.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/query.zig b/query.zig
index 647dc3e..2f33188 100644
--- a/query.zig
+++ b/query.zig
@@ -106,7 +106,7 @@ pub fn ParsedQuery(comptime query: []const u8) ParsedQueryState(query.len) {
106 if (!isNamedIdentifierChar(c)) { 106 if (!isNamedIdentifierChar(c)) {
107 // This marks the end of the named bind marker. 107 // This marks the end of the named bind marker.
108 state = .start; 108 state = .start;
109 const name = buf[hold_pos..pos - 1]; 109 const name = buf[hold_pos .. pos - 1];
110 if (bindMarkerForName(bind_markers[0..nb_bind_markers], name) == null) { 110 if (bindMarkerForName(bind_markers[0..nb_bind_markers], name) == null) {
111 bind_markers[nb_bind_markers].name = name; 111 bind_markers[nb_bind_markers].name = name;
112 nb_bind_markers += 1; 112 nb_bind_markers += 1;