mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-08 12:54:22 +00:00
use system.move instead of system.shallowCopy if the GC mode requires it
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user