Closed sqlalchemy-bot closed 16 years ago
Michael Bayer (zzzeek) wrote:
er, 0.3 doesn't have the infrastructure needed for this in place; theres several other places the catch is needed including set_input_sizes()
, which is used by oracle. The reconnect logic itself was also overhauled in 0.4 as it wasn't working that great in 0.3...so a backport from 0.4 into 0.3 would be a significant job. It would be less work overall if you could upgrade to 0.4, its a pretty easy upgrade path since you can move to 0.3.11, make your app forwards-compatible with 0.4, then move to 0.4.
Michael Bayer (zzzeek) wrote:
ive attached a patch for this, i was wondering can you just test this out with your particular setup ? I think we can probably add tests to test/engine/reconnect.py for this particular issue as well.
Anonymous wrote:
That works, thanks. By the way, I see the same thing in 0.3.6 so you may need to patch 0.3.11 as well.
Changes by Michael Bayer (zzzeek): removed "0.4.6" milestone
Changes by Michael Bayer (zzzeek): set state to "resolved"
Changes by Michael Bayer (zzzeek): changed component from "(none)" to "sql"; set milestone to "0.4.4"
Issue created by Anonymous
I was using SQLALchemy 0.4.3 to read a simple Oracle table in an endless loop when I shut down the server (on purpose). Apparently this was noticed after the query was executed but during the fetches on the ResultProxy. The resulting cx_Oracle exception was not wrapped in a subclass of DBAPIError. The following code reproduces the problem reliably if you have the server up at the start then take it down before hitting Return.
Attachments: result_catches.patch