fixes #16080 (#16091) [backport:1.2]

* fixes #16080

db_sqlite: Error: undeclared field: 'untypedLen'

* redacting fix
This commit is contained in:
RokkuCode
2020-11-23 15:15:55 +01:00
committed by GitHub
parent 79ec1bdcbb
commit ffccdf3c1a

View File

@@ -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: