[Sqlalchemy-tickets] [sqlalchemy] #2850: cleanly upgrade the type of bindparam() with a null type
Brought to you by:
zzzeek
|
From: sqlalchemy <mi...@zz...> - 2013-10-21 20:23:59
|
#2850: cleanly upgrade the type of bindparam() with a null type
-------------------------+------------------------------------
Reporter: zzzeek | Owner: zzzeek
Type: enhancement | Status: new
Priority: high | Milestone: 0.9.0
Component: engine | Severity: major - 1-3 hours
Keywords: | Progress State: in progress
-------------------------+------------------------------------
{{{
#!python
bp = bindparam("somevalue")
stmt = test_table.update().values(avalue=bp)
compiled = stmt.compile()
eq_(bp.type._type_affinity, types.NullType)
eq_(compiled.binds['somevalue'].type._type_affinity, MyCustomType)
}}}
--
Ticket URL: <http://www.sqlalchemy.org/trac/ticket/2850>
sqlalchemy <http://www.sqlalchemy.org/>
The Database Toolkit for Python
|