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

Fix default options argument on ActiveRecord::ConnectionAdaptors::Table#column_exists? #1763

Merged

Conversation

grantneufeld
Copy link
Contributor

Changed the default value for the options argument on ActiveRecord::ConnectionAdapters::Table#column_exists? from nil to an empty Hash {}.

That method calls through to ActiveRecord::ConnectionAdapters::SchemaStatements#column_exists? which expects options to be a Hash.

When options was nil, an error would occur in cases where the column did exist because the called method attempted to perform a key lookup on options.

…onnectionAdapters::Table#column_exists? from nil to an empty Hash {}.

That method calls through to ActiveRecord::ConnectionAdapters::SchemaStatements##column_exists? expects options to be a Hash.

When options was nil, an error would occur in cases where the column did exist because the called method attempted to perform a key lookup on options.
josevalim added a commit that referenced this pull request Jun 19, 2011
…ns_hash

Fix default options argument on ActiveRecord::ConnectionAdaptors::Table#column_exists?
@josevalim josevalim merged commit 7d46061 into rails:master Jun 19, 2011
@josevalim
Copy link
Contributor

Could you please provide a pull request for 3-1-stable?

@josevalim josevalim merged commit 3cc83a8 into rails:master Jun 19, 2011
jake3030 pushed a commit to jake3030/rails that referenced this pull request Jun 28, 2011
…1763 state:resolved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants