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

数据库为oracle ,查询出来map里面的key都变成大写了,即使sql写的是小写还是变成大写了 #55

Open
jcjgithub opened this issue Jul 29, 2020 · 1 comment

Comments

@jcjgithub
Copy link

//查询方法
@TemplateQuery
List<Syusertoken> findListTest(@Param("id")String id);

//对于的sql文件
select id, syuserfk, series, token, accesstoken, address, limitdate, testcol from syusertoken where 1=1
<#if id??>
and id = :id
</#if>

结论:即使这里面写的小写的,最终返回的map里面的key还是大写的
数据库版本是:oracle11g

@devhh
Copy link

devhh commented Dec 2, 2021

目前我的解决方法是将sql字段使用""包含,例如:
select "id", "syuserfk", "series", "token", "accesstoken", "address", "limitdate", "testcol" from syusertoken where 1=1

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

No branches or pull requests

2 participants