任务配置查询在postgres会报错

Blade 未结 1 25

一、该问题的重现步骤是什么?

1. 用postgres数据库,点击 任务配置,查询,这个的原因是 postgre不支持 job_server_id like,而这个会包装like 

Condition.getQueryWrapper(jobInfo, JobInfo.class)


2. 

3.


二、你期待的结果是什么?实际看到的又是什么?

正确查询结果


三、你正在使用的是什么产品,什么版本?在什么操作系统上?

4.8 版本


四、请提供详细的错误堆栈信息,这很重要。

### Error querying database. Cause: org.postgresql.util.PSQLException: ERROR: operator does not exist: bigint ~~ character varying 建议:No operator matches the given name and argument types. You might need to add explicit type casts. 位置:86 ### The error may exist in org/springblade/job/mapper/JobInfoMapper.java (best guess) ### The error may involve defaultParameterMap ### The error occurred while setting parameters ### SQL: SELECT COUNT(*) AS total FROM blade_job_info WHERE is_deleted = 0 AND (job_server_id LIKE ?) ### Cause: org.postgresql.util.PSQLException: ERROR: operator does not exist: bigint ~~ character varying 建议:No operator matches the given name and argument types. You might need to add explicit type casts. 位置:86 ; bad SQL grammar []

五、若有更多详细信息,请在下面提供。

1条回答
  • 下版本处理下查询的逻辑

    0 讨论(0)
提交回复