diff options
| author | 2023-12-19 13:16:28 +0100 | |
|---|---|---|
| committer | 2023-12-19 13:16:28 +0100 | |
| commit | 8fe779aeb6eb365f404c3fa5c9415eb8b9ee245a (patch) | |
| tree | c536a3ca0dcc3f36afdd93d45dc3867a5be9f253 /query.zig | |
| parent | Merge pull request #148 from Cloudef/master (diff) | |
| parent | Add distinct EmptyQuery error (diff) | |
| download | zig-sqlite-8fe779aeb6eb365f404c3fa5c9415eb8b9ee245a.tar.gz zig-sqlite-8fe779aeb6eb365f404c3fa5c9415eb8b9ee245a.tar.xz zig-sqlite-8fe779aeb6eb365f404c3fa5c9415eb8b9ee245a.zip | |
Merge pull request #149 from Cloudef/master
Diffstat (limited to 'query.zig')
| -rw-r--r-- | query.zig | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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; |