From e5a46907abbecc5ad30e23c414b6ecc89d104cb5 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 3 Oct 2019 16:46:09 +0200 Subject: [PATCH] use system.move instead of system.shallowCopy if the GC mode requires it --- src/db_mysql.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db_mysql.nim b/src/db_mysql.nim index ba560243f6..510503a632 100644 --- a/src/db_mysql.nim +++ b/src/db_mysql.nim @@ -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