Skip to content

timeouts escape after pq.ParseUrl not valid #7

@lelvisl

Description

@lelvisl

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions