use system.move instead of system.shallowCopy if the GC mode requires it

This commit is contained in:
Andreas Rumpf
2019-10-03 16:46:09 +02:00
committed by ringabout
parent 4f663a104e
commit e5a46907ab

View File

@@ -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