Skip to content

Support query with parameters#5331

Merged
alexey-milovidov merged 23 commits intoClickHouse:masterfrom
sanych73:prepared_statements
Jun 30, 2019
Merged

Support query with parameters#5331
alexey-milovidov merged 23 commits intoClickHouse:masterfrom
sanych73:prepared_statements

Conversation

@sanych73
Copy link

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Support prepared statements.

Category (leave one):

  • New Feature

Short description (up to few sentences):
Added parameter queries with substitutions processing in the command line client and in the HTTP interface.

@alexey-milovidov alexey-milovidov added can be tested pr-feature Pull request with new product feature labels May 18, 2019
@sanych73 sanych73 force-pushed the prepared_statements branch from c67f407 to c661f5c Compare May 18, 2019 21:07
Copy link
Member

@alexey-milovidov alexey-milovidov left a comment

Choose a reason for hiding this comment

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

Missing tests.

alexey-milovidov added a commit that referenced this pull request Jun 14, 2019
alexey-milovidov added a commit that referenced this pull request Jun 14, 2019
alexey-milovidov added a commit that referenced this pull request Jun 14, 2019
alexey-milovidov added a commit that referenced this pull request Jun 14, 2019
@alexey-milovidov alexey-milovidov merged commit 71427b0 into ClickHouse:master Jun 30, 2019
@sanych73 sanych73 changed the title [WIP] Support query with parameters Support query with parameters Jun 30, 2019
@BayoNet
Copy link
Contributor

BayoNet commented Aug 14, 2019

@sanych73 hello.
I'm trying to add the documentation for this PR, and I need your help. Can you describe the syntax of format string for a query? Where the placeholders can be? What are the rules for placeholders naming? What kinds of placeholders can be. And so on.

@BayoNet
Copy link
Contributor

BayoNet commented Aug 14, 2019

Examples are good but they don't answer my questions. For example, can I pass only the constants to the query, or I can pass, for example, column name like SELECT {col_name} from table?

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

Labels

pr-feature Pull request with new product feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants