Changeset 974 for trunk


Ignore:
Timestamp:
Apr 20, 2019, 6:45:19 AM (3 months ago)
Author:
cito
Message:

Better name for frequent simple types mapping.

Contrary to _SimpleTypes, this is not a cache.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pg.py

    r972 r974  
    583583        return {}
    584584
    585     _simple_types = {
     585    _frequent_simple_types = {
    586586        Bytea: 'bytea',
    587587        str: 'text',
     
    602602        """Try to guess which database type the given value has."""
    603603        # optimize for most frequent types
    604         simple_type = cls._simple_types.get(type(value))
     604        simple_type = cls._frequent_simple_types.get(type(value))
    605605        if simple_type:
    606606            return simple_type
Note: See TracChangeset for help on using the changeset viewer.