Skip to content

Can you explain the simpleQuery implementation? #1019

@mhatch-sc

Description

@mhatch-sc

I see this PR makes it safer to Ping the db, even when a txn has failed. But I don't fully grok it. Specifically, I'm wondering how a caller can be certain that rows aren't nil? It looks like here that simpleQuery could return nil rows and a nil error. Is my understanding incorrect?

Thanks

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