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

bulk_insert() fails in 0.3.0 #41

Closed
sqlalchemy-bot opened this issue Apr 7, 2012 · 2 comments
Closed

bulk_insert() fails in 0.3.0 #41

sqlalchemy-bot opened this issue Apr 7, 2012 · 2 comments
Labels
bug Something isn't working

Comments

@sqlalchemy-bot
Copy link

Migrated issue, originally created by Bill Schindler (@bitranch)

Running a bulk_insert in 0.3.0 produces a traceback:

File "./db-schema/versions/30a9c8146585.py", line 55, in upgrade
    op.bulk_insert(reflevel, vals)
File "<string>", line 7, in bulk_insert
File "/opt/system-builds/alembic/eggs/alembic-0.3.0-py2.6.egg/alembic/operations.py", line 573, in bulk_insert
    self.impl.bulk_insert(table, rows)
File "/opt/system-builds/alembic/eggs/alembic-0.3.0-py2.6.egg/alembic/ddl/impl.py", line 169, in bulk_insert
    self._exec(table.insert(), *rows)
TypeError: _exec() takes at most 5 arguments (2785 given)

It looks like that last call should maybe be
self._exec(table.insert(), multiparams=rows)

@sqlalchemy-bot
Copy link
Author

Michael Bayer (@zzzeek) wrote:

[[https://bitbucket.org/zzzeek/alembic/changeset/a7ada78d87aeb7383455b3935457950f1070d4b2|a7ada78d87aeb7383455b3935457950f1070d4b2]]

thanks for the ticket

@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