Changeset 883 for trunk/pg.py


Ignore:
Timestamp:
Aug 10, 2016, 9:57:50 AM (3 years ago)
Author:
cito
Message:

Fix issue with adaptation of empty arrays in pg

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pg.py

    r880 r883  
    518518            return 'date'
    519519        if isinstance(value, list):
    520             return '%s[]' % cls.guess_simple_base_type(value)
     520            return '%s[]' % (cls.guess_simple_base_type(value) or 'text',)
    521521        if isinstance(value, tuple):
    522522            simple_type = cls.simple_type
Note: See TracChangeset for help on using the changeset viewer.