Changeset 893 for trunk/pgdb.py


Ignore:
Timestamp:
Sep 21, 2016, 10:44:59 AM (3 years ago)
Author:
cito
Message:

Add a way to switch off array casting in pgdb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pgdb.py

    r881 r893  
    518518    def create_array_cast(self, basecast):
    519519        """Create an array typecast for the given base cast."""
     520        cast_array = self['anyarray']
    520521        def cast(v):
    521522            return cast_array(v, basecast)
     
    524525    def create_record_cast(self, name, fields, casts):
    525526        """Create a named record typecast for the given fields and casts."""
     527        cast_record = self['record']
    526528        record = namedtuple(name, fields)
    527529        def cast(v):
Note: See TracChangeset for help on using the changeset viewer.