summaryrefslogtreecommitdiff
path: root/examples/postgis/postgis.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/postgis/postgis.py')
-rw-r--r--examples/postgis/postgis.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/postgis/postgis.py b/examples/postgis/postgis.py
index ef9b77c81..0b86ad323 100644
--- a/examples/postgis/postgis.py
+++ b/examples/postgis/postgis.py
@@ -253,6 +253,9 @@ if __name__ == '__main__':
stmt = select([road_table]).where(road_table.c.road_geom.intersects(r1.road_geom))
print session.execute(stmt).fetchall()
+ # TODO: for some reason the auto-generated labels have the internal replacement
+ # strings exposed, even though PG doesn't complain
+
# look up the hex binary version, using SQLAlchemy casts
as_binary = session.scalar(select([type_coerce(r.road_geom, Geometry(coerce_="binary"))]))
assert as_binary.as_hex == \