mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-14 23:33:28 +00:00
Merge pull request #3264 from jlp765/db_mysql
fixes #3220 src/db_mysql.nim getValue()
This commit is contained in:
@@ -206,10 +206,7 @@ proc getValue*(db: DbConn, query: SqlQuery,
|
||||
## executes the query and returns the first column of the first row of the
|
||||
## result dataset. Returns "" if the dataset contains no rows or the database
|
||||
## value is NULL.
|
||||
result = ""
|
||||
for row in fastRows(db, query, args):
|
||||
result = row[0]
|
||||
break
|
||||
result = getRow(db, query, args)[0]
|
||||
|
||||
proc tryInsertId*(db: DbConn, query: SqlQuery,
|
||||
args: varargs[string, `$`]): int64 {.tags: [FWriteDb].} =
|
||||
|
||||
Reference in New Issue
Block a user