Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timeouts escape after pq.ParseUrl not valid #7

Open
lelvisl opened this issue Sep 22, 2022 · 2 comments
Open

timeouts escape after pq.ParseUrl not valid #7

lelvisl opened this issue Sep 22, 2022 · 2 comments

Comments

@lelvisl
Copy link

lelvisl commented Sep 22, 2022

After call a

connection, err = pq.ParseURL(connection)

timeouts in string format have ' - read_timeout='10000',
Снимок экрана 2022-09-22 в 19 09 47

which causes fail of

val, err := strconv.Atoi(s[1])

pq version: 'github.com/lib/pq v1.10.0'

I can add a trim func for this case (if project still alive)

@lelvisl
Copy link
Author

lelvisl commented Sep 22, 2022

Caused by update lib/pq from 1.9.0 to 1.10.0 - lib/pq@v1.9.0...v1.10.0

@lelvisl
Copy link
Author

lelvisl commented Sep 22, 2022

Can be resolved by #4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant