Address review comment

This commit is contained in:
Mamy Ratsimbazafy 2020-11-28 17:03:59 +01:00 committed by zah
parent 482ea988c0
commit 3b15abab10
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ template readResult(s: RawStmtPtr, column: cint, T: type): auto =
res
elif T is array:
# array[N, byte]. "genericParams(T)[1]" requires 1.4 to handle nnkTypeOfExpr
when typeof(block: (var a: T; a[0])) is byte:
when typeof(default(T)[0]) is byte:
var res: T
let colLen = sqlite3_column_bytes(s, column)