Fixed handling of bindParam(uint32) in sqlite.nim (#1014)

This commit is contained in:
Bulat-Ziganshin 2022-08-31 15:50:05 +03:00 committed by GitHub
parent ad7f9ed5bf
commit 80aeebc61c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ proc bindParam*(s: RawStmtPtr, n: int, val: auto): cint =
elif val is int32:
sqlite3_bind_int(s, n.cint, val)
elif val is uint32:
sqlite3_bind_int(s, int(n).cint, int(val).cint)
sqlite3_bind_int64(s, n.cint, val)
elif val is int64:
sqlite3_bind_int64(s, n.cint, val)
elif val is float64: