mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-16 01:45:40 +00:00
Fixed handling of bindParam(uint32) in sqlite.nim (#1014)
This commit is contained in:
parent
ad7f9ed5bf
commit
80aeebc61c
@ -136,7 +136,7 @@ proc bindParam*(s: RawStmtPtr, n: int, val: auto): cint =
|
|||||||
elif val is int32:
|
elif val is int32:
|
||||||
sqlite3_bind_int(s, n.cint, val)
|
sqlite3_bind_int(s, n.cint, val)
|
||||||
elif val is uint32:
|
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:
|
elif val is int64:
|
||||||
sqlite3_bind_int64(s, n.cint, val)
|
sqlite3_bind_int64(s, n.cint, val)
|
||||||
elif val is float64:
|
elif val is float64:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user