small bugfixes; documentation generator supports smilies for the forum
This commit is contained in:
parent
ccae314635
commit
e95f155af3
11 changed files with 229 additions and 84 deletions
|
|
@ -106,7 +106,7 @@ proc getRow*(db: TDbConn, query: TSqlQuery,
|
|||
var sqlres = mysql.UseResult(db)
|
||||
if sqlres != nil:
|
||||
var L = int(mysql.NumFields(sqlres))
|
||||
var result = newRow(L)
|
||||
result = newRow(L)
|
||||
var row = mysql.FetchRow(sqlres)
|
||||
if row != nil:
|
||||
for i in 0..L-1:
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ proc getRow*(db: TDbConn, query: TSqlQuery,
|
|||
## retrieves a single row.
|
||||
var res = setupQuery(db, query, args)
|
||||
var L = int(PQnfields(res))
|
||||
var result = newRow(L)
|
||||
result = newRow(L)
|
||||
setRow(res, result, 0, L)
|
||||
PQclear(res)
|
||||
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ proc getRow*(db: TDbConn, query: TSqlQuery,
|
|||
## retrieves a single row.
|
||||
var stmt = setupQuery(db, query, args)
|
||||
var L = int(columnCount(stmt))
|
||||
var result = newRow(L)
|
||||
result = newRow(L)
|
||||
if step(stmt) == SQLITE_ROW:
|
||||
setRow(stmt, result, L)
|
||||
if finalize(stmt) != SQLITE_OK: dbError(db)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue