fix db_mysql getRow() when column is null error raised (#12806) [backport]
* fix db_mysql getRow() * added if y == nil [backport]
This commit is contained in:
parent
0987872675
commit
208b018f6b
1 changed files with 4 additions and 3 deletions
|
|
@ -3412,9 +3412,10 @@ elif hasAlloc:
|
||||||
{.push stack_trace:off, profiler:off.}
|
{.push stack_trace:off, profiler:off.}
|
||||||
proc add*(x: var string, y: cstring) =
|
proc add*(x: var string, y: cstring) =
|
||||||
var i = 0
|
var i = 0
|
||||||
while y[i] != '\0':
|
if y != nil:
|
||||||
add(x, y[i])
|
while y[i] != '\0':
|
||||||
inc(i)
|
add(x, y[i])
|
||||||
|
inc(i)
|
||||||
{.pop.}
|
{.pop.}
|
||||||
|
|
||||||
when defined(nimvarargstyped):
|
when defined(nimvarargstyped):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue