make tests green again
This commit is contained in:
parent
136dbd3c6a
commit
bb5bab1b74
3 changed files with 21 additions and 14 deletions
|
|
@ -148,7 +148,7 @@ proc setupQuery(db: DbConn, query: SqlQuery,
|
|||
if prepare_v2(db, q, q.len.cint, result, nil) != SQLITE_OK: dbError(db)
|
||||
|
||||
proc setRow(stmt: Pstmt, r: var Row, cols: cint) =
|
||||
for col in 0..cols-1:
|
||||
for col in 0'i32..cols-1:
|
||||
setLen(r[col], column_bytes(stmt, col)) # set capacity
|
||||
setLen(r[col], 0)
|
||||
let x = column_text(stmt, col)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue