From 84f5749aa21861bca53e543a0ca5fcf6e62b6824 Mon Sep 17 00:00:00 2001 From: MrBounty Date: Wed, 12 Feb 2025 14:53:39 +0100 Subject: [PATCH] Fix Now str array don't take ' on both side when creating the array, otherwise I compare Bob with 'Bob' and it don't work --- src/ziql/parts/value.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ziql/parts/value.zig b/src/ziql/parts/value.zig index 9f4f674..b13d452 100644 --- a/src/ziql/parts/value.zig +++ b/src/ziql/parts/value.zig @@ -246,7 +246,9 @@ pub fn parseConditionValue( token.* = self.toker.next(); } else first = false; - if (token.tag == .string_literal) array.append(self.toker.getTokenSlice(token.*)) catch return ZipponError.MemoryError; + if (token.tag == .string_literal) array.append( + self.toker.getTokenSlice(token.*)[1 .. (token.loc.end - token.loc.start) - 1], + ) catch return ZipponError.MemoryError; if (token.tag == .string_literal or token.tag == .comma) continue; if (token.tag == .r_bracket) break; return printError(