wangbowen1024 opened a new issue, #15481:
URL: https://github.com/apache/dolphinscheduler/issues/15481

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   i use pg to save ds, and i get error when search task instance name:
   
   ```
   [ERROR] 2024-01-13 14:08:22.192 +0800 
org.apache.dolphinscheduler.api.exceptions.ApiExceptionHandler:[52] - 分页查询任务列表错误
   org.springframework.jdbc.BadSqlGrammarException: 
   ### Error querying database.  Cause: org.postgresql.util.PSQLException: 
ERROR: could not determine data type of parameter $3
   ### The error may exist in class path resource 
[org/apache/dolphinscheduler/dao/mapper/TaskInstanceMapper.xml]
   ### The error may involve defaultParameterMap
   ### The error occurred while setting parameters
   ### SQL: SELECT COUNT(*) AS total FROM t_ds_task_instance WHERE project_code 
= ? AND task_execute_type = ? AND process_instance_name LIKE concat('%', ?, '%')
   ### Cause: org.postgresql.util.PSQLException: ERROR: could not determine 
data type of parameter $3
   ; bad SQL grammar []; nested exception is org.postgresql.util.PSQLException: 
ERROR: could not determine data type of parameter $3
   ```
   
   and i find all search will faild with 
   ```sql
    like concat('%', #{xxx}, '%')
   ```
   
   ### What you expected to happen
   
   no error
   
   ### How to reproduce
   
   every time
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   3.2.x
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to