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

[Bug] Parameter replace with ? will cause NPE #15828

Closed
2 of 3 tasks
longlongagos opened this issue Apr 11, 2024 · 3 comments · May be fixed by #15878
Closed
2 of 3 tasks

[Bug] Parameter replace with ? will cause NPE #15828

longlongagos opened this issue Apr 11, 2024 · 3 comments · May be fixed by #15878
Assignees
Labels
backend bug Something isn't working Stale

Comments

@longlongagos
Copy link

Search before asking

  • 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

@longlongagos longlongagos added bug Something isn't working Waiting for reply Waiting for reply labels Apr 11, 2024
@ruanwenjun ruanwenjun changed the title [Bug] [Module Name] Bug title [Bug] Parameter replace with ? will cause NPE Apr 11, 2024
@xxzuo
Copy link
Contributor

xxzuo commented Apr 16, 2024

@ruanwenjun please assign to me

Copy link

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.

@github-actions github-actions bot added the Stale label May 19, 2024
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend bug Something isn't working Stale
Projects
None yet
3 participants