Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade fails on oracle (version 0.7.x) #253

Closed
sqlalchemy-bot opened this issue Dec 12, 2014 · 3 comments
Closed

upgrade fails on oracle (version 0.7.x) #253

sqlalchemy-bot opened this issue Dec 12, 2014 · 3 comments
Labels
bug Something isn't working

Comments

@sqlalchemy-bot
Copy link

Migrated issue, originally created by Ronny Pfannschmidt (@RonnyPfannschmidt)

i just tested the new version on oracle
and it seems the query responsible for updating the version table returns None on execution instead of a result with a rowcount

upon inspection of the source-code i noticed that the oracle implementation extends the _exec method without remembering/returning the return value generated by the super call to the default implementation

@sqlalchemy-bot
Copy link
Author

Michael Bayer (@zzzeek) wrote:

here's the stacktrace, please send these along as they help a lot

#!

Traceback (most recent call last):
  File "/Users/classic/dev/alembic/tests/test_version_table.py", line 159, in test_update_single_to_single
    self.updater.update_to_step(_up('a', 'b'))
  File "/Users/classic/dev/alembic/alembic/migration.py", line 494, in update_to_step
    self._update_version(from_, to_)
  File "/Users/classic/dev/alembic/alembic/migration.py", line 456, in _update_version
    if not self.context.as_sql and ret.rowcount != 1:
AttributeError: 'NoneType' object has no attribute 'rowcount'

@sqlalchemy-bot
Copy link
Author

Michael Bayer (@zzzeek) wrote:

-Repaired a regression in both the MSSQL and Oracle dialects whereby
the overridden _exec() method failed to return a value, as is
needed now in the 0.7 series. fixes #253

  • add backend to UpdateRevTest which does a great job testing
    _exec() pathing for all backends

206143c

@sqlalchemy-bot
Copy link
Author

Changes by Michael Bayer (@zzzeek):

  • changed status to closed

@sqlalchemy-bot sqlalchemy-bot added the bug Something isn't working label Nov 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant