]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add do_setinputsizes event for cx_Oracle
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 26 Jun 2018 20:53:51 +0000 (16:53 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 27 Jun 2018 18:13:43 +0000 (14:13 -0400)
commitc270efdfb38a266ac042be2a0d11b6ff7e5ee619
tree889cc5044b231154e27356f5c584778ef7f21a99
parent1827af37cfc7494143ae290da435029043af2372
Add do_setinputsizes event for cx_Oracle

Added a new event currently used only by the cx_Oracle dialect,
:meth:`.DialectEvents.setiputsizes`.  The event passes a dictionary of
:class:`.BindParameter` objects to DBAPI-specific type objects that will be
passed, after conversion to parameter names, to the cx_Oracle
``cursor.setinputsizes()`` method.  This allows both visibility into the
setinputsizes process as well as the ability to alter the behavior of what
datatypes are passed to this method.

Change-Id: I43b97c8e3c840cad6f01edb274dc9cfed19cb5fc
Fixes: #4290
doc/build/changelog/unreleased_12/4290.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/oracle/cx_oracle.py
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/events.py
test/dialect/oracle/test_types.py