tconbeer / harlequin

The SQL IDE for Your Terminal.
https://harlequin.sh
MIT License
3.83k stars 88 forks source link

Surrounded text in query result with '[ ]' makes it invisible #647

Closed burncitiesburn closed 4 weeks ago

burncitiesburn commented 2 months ago

Before Proceeding, please acknowledge:

Describe the bug

If you have a field returned in a dataset which is surrounded by '[' ']' the results appear invisible.

Screenshot 2024-09-24 at 10 02 12 AM

To Reproduce

Run a query such as

select '[some text]'

Expected behavior

The output should be '[some text]'

Actual behavior

Field displays empty.

Contributing Are you interested in contributing a fix?

Additional context

What is the output of harlequin --version?

harlequin, version 1.24.0

Installed Adapters:
  - mysql, version 0.2.0
  - odbc, version 0.1.1
  - duckdb, version 1.24.0
  - sqlite, version 1.24.0

What database adapter are you using with Harlequin? (Default is duckdb)

odbc

What other options are you using when invoking Harlequin? (If you are using a profile, please add relevant items from your profile here).

Can you tell us more about your system?

[!TIP] For example, for my system, these are:

  • Bash
  • Windows Terminal
  • Ubuntu 22.04 / WSL2
  • Windows 11
  • en_US/UTF-8

How did you install Harlequin?

tconbeer commented 2 months ago

Yeah, I know what's going on here. Thanks for the report. This is bad, will fix.