diff --git a/ndb/postgres.nim b/ndb/postgres.nim index 2a3b1b3..40ae43f 100644 --- a/ndb/postgres.nim +++ b/ndb/postgres.nim @@ -221,7 +221,7 @@ proc dbError*(db: DbConn) {.noreturn.} = proc tryWithStmt(db: DbConn, query: SqlQuery, args: seq[DbValue], expectedStatusType: ExecStatusType, - body: proc(res: PPGresult): bool {.raises: [], tags: [].}): bool = + body: proc(res: PPGresult): bool {.raises: [], tags: [], gcsafe.}): bool = ## A common template dealing with statement initialization and finalization: ## ## 1. Initialize a statement. diff --git a/ndb/sqlite.nim b/ndb/sqlite.nim index 9507fcf..04acbe2 100644 --- a/ndb/sqlite.nim +++ b/ndb/sqlite.nim @@ -239,7 +239,7 @@ proc bindArgs(db: DbConn, stmt: var sqlite3.Pstmt, query: SqlQuery, return true proc tryWithStmt(db: DbConn, query: SqlQuery, args: seq[DbValue], - body: proc(stmt: Pstmt): bool {.raises: [], tags: [].}): bool = + body: proc(stmt: Pstmt): bool {.raises: [], tags: [], gcsafe.}): bool = ## A common template dealing with statement initialization and finalization: ## ## 1. Initialize a statement.