support for geography types, thanks sunny
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.9.5-stable+timestamp.2014.03.19.16.24.08
|
Version 2.9.5-stable+timestamp.2014.03.20.11.13.15
|
||||||
|
|||||||
+1
-1
@@ -1710,7 +1710,7 @@ class BaseAdapter(ConnectionPool):
|
|||||||
return self.expand(field, colnames=True)
|
return self.expand(field, colnames=True)
|
||||||
self._colnames = map(colexpand, fields)
|
self._colnames = map(colexpand, fields)
|
||||||
def geoexpand(field):
|
def geoexpand(field):
|
||||||
if isinstance(field.type,str) and field.type.startswith('geometry') and isinstance(field, Field):
|
if isinstance(field.type,str) and field.type.startswith('geo') and isinstance(field, Field):
|
||||||
field = field.st_astext()
|
field = field.st_astext()
|
||||||
return self.expand(field)
|
return self.expand(field)
|
||||||
sql_f = ', '.join(map(geoexpand, fields))
|
sql_f = ', '.join(map(geoexpand, fields))
|
||||||
|
|||||||
Reference in New Issue
Block a user