-
Notifications
You must be signed in to change notification settings - Fork 132
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
mysql keyword isn't mapping to the result #861
Comments
If you would like us to spend some time helping you to diagnose the problem, please spend some time describing it and, ideally, providing a minimal yet complete sample that reproduces the problem. |
java
sql: create table demo
(
id int unsigned auto_increment
primary key,
uid bigint(11) unsigned default 0 not null comment '',
`key` varchar(100) default '' not null comment '',
value varchar(100) default '' not null comment '',
created_at datetime default CURRENT_TIMESTAMP not null
);
INSERT INTO demo (uid, `key`, value) VALUES (10000, 'key1', '0'); query: public interface SpotMarginUserSettingReadRepository extends R2dbcRepository<Demo, Long> {
@Query("select * from demo where `key`= 'key1' and uid = :uid limit 1")
Mono<Demo> getSomeDemo(long uid);
} the field |
|
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
The field key return null when query , if set the @column("key") it works fine ; but it'll error when insert or update because key is a keyword in mysql;
The text was updated successfully, but these errors were encountered: