[Bug] Parameter replace with ? will cause NPE
Search before asking
- [X] I had searched in the issues and found no similar issues.
What happened
When I want to pass parameters and "?" appears inside the SQL statement, the scheduler will report a null pointer error to me.
What you expected to happen
I think that when passing parameters, during the escaping process, the parameters will be replaced with "?" first. At this time, it conflicts with the "?" inside the SQL statement.
How to reproduce
There is no such problem in older versions
Anything else
my demo like this select concat('(?i)', (select name from namelist where tag = '${tag}'))
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
@ruanwenjun please assign to me
This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.
This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.