Permalink
Browse files

Also quote extension name in disable_extension

A patch was committed recently which quoted the extension name in the SQL for `enable_extension`. But the same wasn't done for `disable_extension`.
  • Loading branch information...
1 parent d25a822 commit 2076a9397911cb49442f5e3b36ae0b57df52d019 @stouset stouset committed Mar 12, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -600,7 +600,7 @@ def enable_extension(name)
end
def disable_extension(name)
- exec_query("DROP EXTENSION IF EXISTS #{name} CASCADE").tap {
+ exec_query("DROP EXTENSION IF EXISTS \"#{name}\" CASCADE").tap {
reload_type_map
}
end

0 comments on commit 2076a93

Please sign in to comment.