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

Quote new column name in renameColumn in PostgresAdapter #1041

Merged
merged 2 commits into from
Feb 26, 2017
Merged

Quote new column name in renameColumn in PostgresAdapter #1041

merged 2 commits into from
Feb 26, 2017

Conversation

fracz
Copy link
Contributor

@fracz fracz commented Feb 23, 2017

The $this->quoteColumnName call is missing for $newColumnName in PostgresAdapter.

This results in bad behavior, for example renameColumn('created_at', 'createdAt') results in createdat column name in database.

The `$this->quoteColumnName` call is missing for `$newColumnName` in `PostgresAdapter`.

This results in bad behavior, for example `renameColumn('created_at', 'createdAt')` results in `createdat` column name in database.
@robmorgan
Copy link
Member

@fracz nice find, can you wrap a test?

@fracz
Copy link
Contributor Author

fracz commented Feb 25, 2017

Test added.

@robmorgan
Copy link
Member

@fracz awesome, thx 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants