Skip to content

Add flatKeys option parameter#77

Open
mary2501 wants to merge 3 commits into
ghdna:masterfrom
mary2501:master
Open

Add flatKeys option parameter#77
mary2501 wants to merge 3 commits into
ghdna:masterfrom
mary2501:master

Conversation

@mary2501
Copy link
Copy Markdown

Scenario:
I have a query with this column header "test (one, two, etc.)"
I run the query
SELECT field AS "test (one, two, etc.)" from some_table
I receive a wrong JSON response because the dot inside the column header is interpreted as a nested array.

In this PR, I added a new config parameter "flatKeys" that fix the issue mentioned above. It is set by default to false in order to be retro compatible

@ghdna
Copy link
Copy Markdown
Owner

ghdna commented Feb 15, 2022

Interesting issue. Thanks for the PR. I'll review it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants