diff --git a/src/fiber_orm/util.nim b/src/fiber_orm/util.nim index e397252..4e71a94 100644 --- a/src/fiber_orm/util.nim +++ b/src/fiber_orm/util.nim @@ -256,6 +256,12 @@ func createParseStmt*(t, value: NimNode): NimNode = else: error "Cannot parse column with unknown generic instance type: " & $t.getTypeInst + elif t.typeKind == ntyDistinct: + result = quote do: + block: + let tmp: `t` = `value` + tmp + elif t.typeKind == ntyRef: if $t.getTypeInst == "JsonNode":