vim-dadbod-ui icon indicating copy to clipboard operation
vim-dadbod-ui copied to clipboard

Incorrect url parsing for special characters in password

Open SpicyChickenFLY opened this issue 1 year ago • 2 comments

would parse url incorrectly if there are some special characters like @, # inside the dsn components (mostly inside password). e.g. use config: [{ "name": "test", "url": "mysql://user:p@ssword@localhost:5432" }] get error: Error connection to db test: DB exec error: 2005 (HY000): Unknown server host 'ssword@localhost:5432' (-2)

SpicyChickenFLY avatar Aug 24 '23 05:08 SpicyChickenFLY

Do you have this issue when using only vim-dadbod ?

kristijanhusak avatar Sep 14 '23 10:09 kristijanhusak

you have to escape the @ since it has meaning in the url %40

skbolton avatar Feb 14 '24 01:02 skbolton