Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read#handleRawResponse: return an array #12

Merged
merged 1 commit into from
Mar 25, 2016

Conversation

go-oleg
Copy link
Contributor

@go-oleg go-oleg commented Mar 25, 2016

When DDL statements like 'CREATE TABLE' are run, the first item of the response is an object instead of an array. Wrap it into an array in these situations.

I didn't do a thorough investigation of why this used to work fine and doesn't now. Either we used to do this wrapping somewhere downstream (perhaps even in core juttle) or knex used to return an array in the first item. Either way, we should ensure that the returned value is an array.

@VladVega @demmer @rlgomes

When DDL statements like 'CREATE TABLE' are run, the first item of the response is an object instead of an array. Wrap it into an array in these situations.
@demmer
Copy link
Contributor

demmer commented Mar 25, 2016

+1

@go-oleg go-oleg merged commit 82a16b1 into master Mar 25, 2016
@go-oleg go-oleg deleted the handleRawResponse-return-array branch March 25, 2016 01:24
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.

None yet

3 participants