Skip to content

Empty result sets drop columns before they can be read #121

@IvanChepurnyi

Description

@IvanChepurnyi

When you have multiple results sets in the query that return empty rows it is impossible to access current result set columns as it gets consumed before you can call columns method.

I'll try to provide a PR for making it possible to see if next can be split into multiple methods to return old meta when old one gets discarded.

Here is a source of the problem:

  1. When the next result set is received, it takes another loop run here
  2. And on the next loop iteration it right away discards the result and returns None here.

It results in a situation that it is possible to fetch columns only of the first result set, but the rest of the result set is just skipped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions