use system.move instead of system.shallowCopy if the GC mode requires it
This commit is contained in:
parent
68ce808db1
commit
60d64d1aef
14 changed files with 61 additions and 36 deletions
|
|
@ -201,7 +201,7 @@ iterator instantRows*(db: DbConn, query: SqlQuery,
|
|||
properFreeResult(sqlres, row)
|
||||
|
||||
proc setTypeName(t: var DbType; f: PFIELD) =
|
||||
shallowCopy(t.name, $f.name)
|
||||
t.name = $f.name
|
||||
t.maxReprLen = Natural(f.max_length)
|
||||
if (NOT_NULL_FLAG and f.flags) != 0: t.notNull = true
|
||||
case f.ftype
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue