Skip to content

Commit

Permalink
Quote database name in ALTER DATABASE "..." SET search_path TO
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitri committed May 11, 2019
1 parent 06216ee commit 501cbed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pgsql/pgsql-create-schema.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
:collect schema-name)))
(when missing-schemas
(let ((sql (format nil
"ALTER DATABASE ~a SET search_path TO ~{~a~^, ~};"
"ALTER DATABASE ~s SET search_path TO ~{~a~^, ~};"
dbname
(append search-path missing-schemas))))
(pgsql-execute-with-timing section
Expand Down

0 comments on commit 501cbed

Please sign in to comment.