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

fix:apache#1358 #1469

Merged
Merged

Conversation

jianwei2
Copy link
Contributor

What is the purpose of the change
close #1358

Brief change log
-Optimize SqlCodeParser
-Semicolons inside double or single quotation marks are not considered delimiters

Verifying this change
This change added tests and can be verified as follows:
select * from xx where xx like '%abc;def%';
select * from xx where xx like '%abc;d"ef%';select * from xx where xx like '%a;d"ef%';
select * from xx where xx like '%abc;d;ef%';

Does this pull request potentially affect one of the following parts:
Dependencies (does it add or upgrade a dependency): ( no)
Anything that affects deployment: (no)
The MGS(Microservice Governance Services), i.e., Spring Cloud Gateway, OpenFeign, Eureka.: ( no)
Documentation
Does this pull request introduce a new feature? (no)

The following statement passes the test:
select * from xx where xx like '%abc;def%';
select * from xx where xx like '%abc;d"ef%';select * from xx where xx like '%a;d"ef%';
select * from xx where xx like '%abc;d\;ef%'
Copy link
Contributor

@peacewong peacewong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@peacewong peacewong merged commit 9641def into apache:dev-1.1.0-datasource Feb 17, 2022
@yingeo
Copy link

yingeo commented Feb 17, 2022 via email

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

Successfully merging this pull request may close these issues.

None yet

3 participants