Skip to content

refactor: Use pymysql to automatically escape#76

Closed
longbingljw wants to merge 17 commits into
oceanbase:mainfrom
longbingljw:escape
Closed

refactor: Use pymysql to automatically escape#76
longbingljw wants to merge 17 commits into
oceanbase:mainfrom
longbingljw:escape

Conversation

@longbingljw

Copy link
Copy Markdown
Member

Summary

Use parameterized query and pymysql will automatically escape the parameters
close #62
fix #75

Solution Description

y1-l1n and others added 16 commits December 5, 2025 11:59
provide HybridSearch class to enhance hybrid_search interface
<!--
Thank you for contributing to OceanBase! 
Please feel free to ping the maintainers for the review!
-->

## Summary
<!-- 
Please clearly and concisely describe the purpose of this pull request.
If this pull request resolves an issue, please link it via "close #xxx"
or "fix #xxx".
-->
close oceanbase#64 
make Client.execute a private method.
Fix execute bug in client_base.py
<!--
Thank you for contributing to OceanBase! 
Please feel free to ping the maintainers for the review!
-->

## Summary
<!-- 
Please clearly and concisely describe the purpose of this pull request.
If this pull request resolves an issue, please link it via "close #xxx"
or "fix #xxx".
-->
close oceanbase#56

Support fulltext index parser configuration
This reverts commit e9921b5.
@coderabbitai

coderabbitai Bot commented Dec 16, 2025

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Comment @coderabbitai help to get the list of available commands and usage tips.

@hnwyllmm

Copy link
Copy Markdown
Member

Could you please create a new pull request to target develop branch?

@longbingljw

Copy link
Copy Markdown
Member Author

Could you please create a new pull request to target develop branch?

Seems like it will be some code conflicts.

@whhe

whhe commented Dec 16, 2025

Copy link
Copy Markdown
Member

I would prefer to use placeholders to set parameters rather than directly calling escape_string. https://pymysql.readthedocs.io/en/latest/modules/cursors.html#pymysql.cursors.Cursor.execute

@longbingljw

Copy link
Copy Markdown
Member Author

I would prefer to use placeholders to set parameters rather than directly calling escape_string. https://pymysql.readthedocs.io/en/latest/modules/cursors.html#pymysql.cursors.Cursor.execute

Thanks,I will check it.

@longbingljw

Copy link
Copy Markdown
Member Author

I would prefer to use placeholders to set parameters rather than directly calling escape_string. https://pymysql.readthedocs.io/en/latest/modules/cursors.html#pymysql.cursors.Cursor.execute

I looked into it, and the embedded version of pyseekdb doesn't support parameterized queries. It's possible that when the server-side component was added, using parameterized queries wasn't considered either.

@longbingljw

Copy link
Copy Markdown
Member Author

New pr:#77
This pr will be closed.

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.

4 participants