Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GC safety warning #25

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ndb/postgres.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion ndb/sqlite.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down