make tests green again

This commit is contained in:
Andreas Rumpf
2017-11-07 12:57:32 +01:00
committed by ringabout
parent d409e7f4ba
commit a9a982c5e9

View File

@@ -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)