From 96dc2f660346ee5a9f53a65e9d620f3b01a1e850 Mon Sep 17 00:00:00 2001 From: Liu Liu Date: Thu, 18 Feb 2021 12:33:37 -0500 Subject: [PATCH] Fix a small issue with query in. --- src/exprs/sqlite/SQLiteIn.swift | 10 ++++++---- src/exprs/sqlite/SQLiteNotIn.swift | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/exprs/sqlite/SQLiteIn.swift b/src/exprs/sqlite/SQLiteIn.swift index bd97d1419..47cc8e405 100644 --- a/src/exprs/sqlite/SQLiteIn.swift +++ b/src/exprs/sqlite/SQLiteIn.swift @@ -10,10 +10,12 @@ extension InExpr: SQLiteExpr where T: SQLiteExpr, T.ResultType: SQLiteValue { if count > 0 { parameterCount += 1 query.append("?\(parameterCount)") - } - for _ in 1.. 1 { + for _ in 1.. 0 { parameterCount += 1 query.append("?\(parameterCount)") - } - for _ in 1.. 1 { + for _ in 1..