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

autogen primary key renderer uses column.key instead of column.name when assembling list of columns #335

Closed
sqlalchemy-bot opened this issue Oct 25, 2015 · 6 comments
Labels
autogenerate - rendering bug Something isn't working
Milestone

Comments

@sqlalchemy-bot
Copy link

Migrated issue, originally created by Jesse Dhillon (@jessedhillon)

Possibly related to #259

When rendering PrimaryKeyConstraint, I've noticed that I have to manually fix the output because the list of columns references each column's key property instead of name. Reading the SQLAlchemy docs, particularly:

The name of this column as represented in the database.

~ sqlalchemy.schema.Column.params.name

and

the name field is used only when rendering SQL.

~ sqlalchemy.schema.Column.params.key

it seems that name is the correct choice when building a PrimaryKeyConstraint.

@sqlalchemy-bot
Copy link
Author

@sqlalchemy-bot
Copy link
Author

Michael Bayer (@zzzeek) wrote:

all of these things are true! thanks for the PR, on my list.

@sqlalchemy-bot
Copy link
Author

Changes by Michael Bayer (@zzzeek):

  • set milestone to "fasttrack"

@sqlalchemy-bot
Copy link
Author

Michael Bayer (@zzzeek) wrote:

5b630c1

@sqlalchemy-bot
Copy link
Author

@sqlalchemy-bot
Copy link
Author

Changes by Michael Bayer (@zzzeek):

  • changed status to closed

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

No branches or pull requests

1 participant