From ffccdf3c1a91e3a4ac79b209ae4f034ad253d97b Mon Sep 17 00:00:00 2001 From: RokkuCode Date: Mon, 23 Nov 2020 15:15:55 +0100 Subject: [PATCH] fixes #16080 (#16091) [backport:1.2] * fixes #16080 db_sqlite: Error: undeclared field: 'untypedLen' * redacting fix --- lib/impure/db_sqlite.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/impure/db_sqlite.nim b/lib/impure/db_sqlite.nim index ce57996bee..5c79b8c2a9 100644 --- a/lib/impure/db_sqlite.nim +++ b/lib/impure/db_sqlite.nim @@ -855,7 +855,7 @@ macro untypedLen(args: varargs[untyped]): int = template exec*(db: DbConn, stmtName: SqlPrepared, args: varargs[typed]): untyped = - when args.untypedLen > 0: + when untypedLen(args) > 0: if reset(stmtName.PStmt) != SQLITE_OK: dbError(db) if clear_bindings(stmtName.PStmt) != SQLITE_OK: