We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
dumpable/lib/dumpable/dumper.rb
Line 80 in cf9d475
ActiveRecord::Base.connection.quote
Line 73 in cf9d475
keys = key_values.collect{ |item| ActiveRecord::Base.connection.quote_column_name(item[0]) }.join(", ")
And what's rarely an issue but still, quote the table name: table_name = ActiveRecord::Base.connection.quote_table_name(object.class.table_name)
table_name = ActiveRecord::Base.connection.quote_table_name(object.class.table_name)
This also increases support for other databases.
The text was updated successfully, but these errors were encountered:
Awesome @Quantenradierer . I had no idea those utilities existed. I created this gem some time ago and based the original implementation on a blog article I found here: http://invisipunk.blogspot.com/2008/04/activerecord-raw-insertupdate.html.
It looks like those utils go really far back in Rails' versions, so yeah, I'll definitely see if I can make this change pretty soon.
Sorry, something went wrong.
@hunterae So happy someone found that article useful.
No branches or pull requests
dumpable/lib/dumpable/dumper.rb
Line 80 in cf9d475
Can be replaced by
ActiveRecord::Base.connection.quote
?dumpable/lib/dumpable/dumper.rb
Line 73 in cf9d475
Can be replaced by
keys = key_values.collect{ |item| ActiveRecord::Base.connection.quote_column_name(item[0]) }.join(", ")
And what's rarely an issue but still, quote the table name:
table_name = ActiveRecord::Base.connection.quote_table_name(object.class.table_name)
This also increases support for other databases.
The text was updated successfully, but these errors were encountered: