added system.setControlCHook, system.writeStackTrace
This commit is contained in:
parent
ccd58fba2c
commit
b2746c4659
4 changed files with 17 additions and 2 deletions
|
|
@ -85,7 +85,8 @@ proc setRow(stmt: PStmt, r: var TRow, cols: int) =
|
|||
for col in 0..cols-1:
|
||||
setLen(r[col], column_bytes(stmt, col)) # set capacity
|
||||
setLen(r[col], 0)
|
||||
add(r[col], column_text(stmt, col))
|
||||
let x = column_text(stmt, col)
|
||||
if not isNil(x): add(r[col], x)
|
||||
|
||||
iterator FastRows*(db: TDbConn, query: TSqlQuery,
|
||||
args: openarray[string]): TRow =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue