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

SimpleJdbcInsert doesn't support "keyword" column [SPR-17097] #21634

Closed
spring-projects-issues opened this issue Jul 27, 2018 · 4 comments
Closed
Labels
in: data status: duplicate

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Jul 27, 2018

lmtoo opened SPR-17097 and commented

I have a table, defined as follows:

create table im.t_process_instance_attributescreate table im.t_process_instance_attributes( ownerId int default '0' not null, `key` varchar(50) default '' not null, value varchar(200) null, primary key (ownerId, `key`));

While SimpleJdbcInsert generated insert sql is:

INSERT INTO t_process_instance_attributes (ownerId, key, value) VALUES(?, ?, ?)

 
Key column doesn't have escape symbol, and BadSqlGrammarException is thrown.


No further details from SPR-17097

@spring-projects-issues spring-projects-issues added type: bug status: waiting-for-triage in: data and removed type: bug labels Jan 11, 2019
@leolee192
Copy link

@leolee192 leolee192 commented Apr 14, 2019

Duplicate of #13874

@sbrannen
Copy link
Member

@sbrannen sbrannen commented Apr 14, 2019

@ledoyen, thanks for pointing that out.

Closing this issue as a duplicate of #13874.

@sbrannen sbrannen added status: duplicate and removed status: waiting-for-triage labels Apr 14, 2019
@ledoyen
Copy link
Contributor

@ledoyen ledoyen commented Apr 14, 2019

@sbrannen

I think you wanted to mention @leolee192 😉

@sbrannen
Copy link
Member

@sbrannen sbrannen commented Apr 14, 2019

Indeed. Sorry about the noise. I'll just blame that on auto-correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: data status: duplicate
Projects
None yet
Development

No branches or pull requests

4 participants