Skip to content

connection.query timeout do not work  #167

Open
@bubnenkoff

Description

@bubnenkoff

timeoutInSeconds in:

connection.query(sqlQuery, timeoutInSeconds: 3600)

do not work, My code is fall with timeout exception: Future not compeleted on long queries.

query timeouts sets only if they are setting on connection:

connection = PostgreSQLConnection('localhost', 5432, 'test', username: 'postgres', password: '12345', queryTimeoutInSeconds: 3600); // here 

But setting in connection.query are should work because:

timeoutInSeconds ??= _connection.queryTimeoutInSeconds;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions