Permalink
Browse files

fixes enable_extension bug in postgresql_adapter

The use of quotations is required to install extensions with certain
characters in them (e.g. uuid-ossp).

removes CHANGELOG entry

Deemed unnecessary.
  • Loading branch information...
1 parent e3c56ad commit 511c5ec8201e26fe1e69dca43b03a7b6990849b3 Darren Woodley committed Mar 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -594,7 +594,7 @@ def supports_ranges?
end
def enable_extension(name)
- exec_query("CREATE EXTENSION IF NOT EXISTS #{name}").tap {
+ exec_query("CREATE EXTENSION IF NOT EXISTS \"#{name}\"").tap {
reload_type_map
}
end

0 comments on commit 511c5ec

Please sign in to comment.