Skip to content

If the query result is empty, the formatted content throws an exception #114

Description

@hiasenddup

Describe the bug and expected behavior
-p throws an exception when the result is empty

Reproduction steps
dsq testdata.xlsx "select * from {} where czr like '王五%'" -p

Versions
OS: [windows 10]
Shell: [cmd.exe]
dsq version: [win 32-x64-v0.23.0]

Additional context, screenshots
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    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