_compared_to_type._coerce_compared_value(
_compared_to_operator, value)
else:
- self.type = sqltypes.type_map.get(type(value),
+ self.type = sqltypes._type_map.get(type(value),
sqltypes.NULLTYPE)
elif isinstance(type_, type):
self.type = type_()
'String', 'Integer', 'SmallInteger', 'BigInteger', 'Numeric',
'Float', 'DateTime', 'Date', 'Time', 'LargeBinary', 'Binary',
'Boolean', 'Unicode', 'MutableType', 'Concatenable',
- 'UnicodeText','PickleType', 'Interval', 'type_map', 'Enum' ]
+ 'UnicodeText','PickleType', 'Interval', 'Enum' ]
import inspect
import datetime as dt
return self.__class__
def _coerce_compared_value(self, op, value):
- _coerced_type = type_map.get(type(value), NULLTYPE)
+ _coerced_type = _type_map.get(type(value), NULLTYPE)
if _coerced_type is NULLTYPE or _coerced_type._type_affinity \
is self._type_affinity:
return self
# using VARCHAR/NCHAR so that we dont get the genericized "String"
# type which usually resolves to TEXT/CLOB
-# NOTE: this dict is not meant to be public and will be underscored
-# in 0.7, see [ticket:1870].
-type_map = {
+_type_map = {
str: String(),
# Py3K
#bytes : LargeBinary(),
for c in t.c:
c.type._type_affinity
from sqlalchemy import types
- for t in types.type_map.values():
+ for t in types._type_map.values():
t._type_affinity
@profiling.function_call_count(69, {'2.4': 44,