Skip to content

Commit

Permalink
Properly quote CREATE DATABASE parameters in postgresql [#771 state:r…
Browse files Browse the repository at this point in the history
…esolved]
  • Loading branch information
tarmo committed Aug 22, 2008
1 parent ab33b27 commit d3b8945
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -534,13 +534,13 @@ def create_database(name, options = {})
option_string = options.symbolize_keys.sum do |key, value|
case key
when :owner
" OWNER = '#{value}'"
" OWNER = \"#{value}\""
when :template
" TEMPLATE = #{value}"
" TEMPLATE = \"#{value}\""
when :encoding
" ENCODING = '#{value}'"
when :tablespace
" TABLESPACE = #{value}"
" TABLESPACE = \"#{value}\""
when :connection_limit
" CONNECTION LIMIT = #{value}"
else
Expand Down

0 comments on commit d3b8945

Please sign in to comment.