[Sqlalchemy-tickets] [sqlalchemy] #2838: render_literal_bindparam() naively calls cached_bind_proce
Brought to you by:
zzzeek
|
From: sqlalchemy <mi...@zz...> - 2013-10-14 14:56:01
|
#2838: render_literal_bindparam() naively calls cached_bind_processor
--------------------+------------------------------------
Reporter: zzzeek | Owner: zzzeek
Type: defect | Status: new
Priority: high | Milestone: 0.9.0
Component: sql | Severity: major - 1-3 hours
Keywords: | Progress State: in queue
--------------------+------------------------------------
I think we need a new method on type that's specific to rendering a type
for literal SQL. At the moment, a string type on an encoding backend can
pass in a bytes into render_literal_value (see
test.sql.test_types:EnumTest.test_mock_engine_no_prob using Oracle backend
on python3). We're working around this by re-decoding the bytes in the
method, but more elaborate bind processor schemes will need to be aware of
literal SQL and naturally this should be type-based in any case.
--
Ticket URL: <http://www.sqlalchemy.org/trac/ticket/2838>
sqlalchemy <http://www.sqlalchemy.org/>
The Database Toolkit for Python
|