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

Implementation ClickHousePreparedStatementImpl#getMetaData() #238

Closed
wants to merge 2 commits into from

Conversation

tac0x2a
Copy link
Contributor

@tac0x2a tac0x2a commented Sep 29, 2018

Hi, I implement ClickHousePreparedStatementImpl#getMetaData().

This method needs to execute query if before execution query for getting ResultSet via getResultSet().

Copy link
Contributor

@serebrserg serebrserg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can get metadata without really executing full query by issuing query with limit 0. I think this should be more expected behavior than executing full query. However this needs some enhancement of parsing/modification of sql query (from first impression, it is enough to add limit 0 at the very end of select query)

@serebrserg
Copy link
Contributor

The option with limit was implemented in #288 . Thanks for your effort.

@serebrserg serebrserg closed this Jan 25, 2019
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

2 participants