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
commit ffccdf3c1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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: