Skip to content

db_postgres.getValue issues warning when no rows found #12973

@chrisheller

Description

@chrisheller

When calling getValue in db_postgres, the underlying Postgres library issues a warning when there are no rows that were found by the SELECT statement.

The fix is to check pqntuples() is greater than 0 before calling pqgetvalue. This is similar to #11821

$ nim -v
Nim Compiler Version 1.0.4

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