From: Mike Bayer Date: Fri, 17 Aug 2012 23:11:21 +0000 (-0400) Subject: add a note X-Git-Tag: rel_0_8_0b1~231 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d2ed308da38af01e23d9f4085f6b8f973994b29a;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git add a note --- diff --git a/examples/postgis/postgis.py b/examples/postgis/postgis.py index ef9b77c81c..0b86ad323d 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 == \