Skip to content

Insert error while the column value has 'values(' and comma use jdbc #533

@dengdaizc

Description

@dengdaizc

Hi,
here's my question.

this is my table :
CREATE TABLE smarts.test2(a String,bString)ENGINE = MergeTree() ORDER BY a SETTINGS index_granularity = 8192
and when i insert data like this:
insert into test2(a,b) values('values(',',')
When there is 'values(' at the first column and comma at the second column, it reports an error and inserts fail when use jdbc. However it is ok in client or http.

i think there's some problem at parseSQL in PreparedStatementParser class.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions