kristijanhusak / vim-dadbod-ui

Simple UI for https://github.com/tpope/vim-dadbod
MIT License
1.54k stars 94 forks source link

Incorrect url parsing for special characters in password #186

Closed SpicyChickenFLY closed 8 months ago

SpicyChickenFLY commented 1 year ago

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)

kristijanhusak commented 1 year ago

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

skbolton commented 9 months ago

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