Skip to content

Commit

Permalink
Fix reading NULL from optional nullable array column
Browse files Browse the repository at this point in the history
  • Loading branch information
kozlovsky committed Jan 21, 2019
1 parent 2b17c30 commit 5ed45d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pony/orm/dbapiprovider.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ def validate(converter, val, obj=None):
return TrackedArray(obj, converter.attr, items)

def dbval2val(converter, dbval, obj=None):
if obj is None:
if obj is None or dbval is None:
return dbval
return TrackedArray(obj, converter.attr, dbval)

Expand Down

0 comments on commit 5ed45d2

Please sign in to comment.