mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-04 10:31:02 +02:00
Fix pgsql uri parsing for empty hosts.
Don't use and empty string as a valid hostname, we want either the default unix socket or "localhost" to be used in that case.
This commit is contained in:
parent
9fb03d2d2e
commit
3cbaea52f5
@ -59,7 +59,8 @@
|
||||
|
||||
(defrule network-name (and namestring (* (and "." namestring)))
|
||||
(:lambda (name)
|
||||
(list :host (text name))))
|
||||
(let ((host (text name)))
|
||||
(list :host (unless (string= "" host) host)))))
|
||||
|
||||
(defrule hostname (or ipv4 socket-directory network-name)
|
||||
(:identity t))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user