mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-05 19:06:11 +02:00
Quote database name in ALTER DATABASE "..." SET search_path TO
Fixes #933.
This commit is contained in:
parent
06216eea99
commit
501cbed745
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user