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 24, 2008
1 parent 104220e commit a661986
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -530,13 +530,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 a661986

Please sign in to comment.