Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Xb2555
Copy link
Contributor

@Xb2555 Xb2555 commented Aug 31, 2025

Ⅰ. Describe what this PR did

  • In the PageUtil, add two methods, getDateTimeStartSql and getDateTimeEndSql, to implement the query of the datetime type field in the table by second-level timestamp.

  • Among the above two methods, for the database types currently supported by the server, write the respective query SQL statements, conforming as much as possible to the syntax rules of different databases, and implement the default time zone query of the database.

Ⅱ. Does this pull request fix one issue?

fixes #7612

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

  • Query the relevant global lock information by specifying the global lock creation time (ensuring that the incoming time is in timestamp format)

Ⅴ. Special notes for reviews

@Xb2555 Xb2555 marked this pull request as ready for review August 31, 2025 16:14
… getDateTimeSql in PageUtil to avoid being overwritten when generating countSql
@slievrly slievrly added this to the 2.6.0 milestone Sep 1, 2025
Copy link
Member

@slievrly slievrly left a comment

Choose a reason for hiding this comment

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

LGTM

@slievrly
Copy link
Member

slievrly commented Sep 1, 2025

@Xb2555 thanks for your contribution.

@slievrly slievrly merged commit 1e9e759 into apache:2.x Sep 1, 2025
slievrly pushed a commit to slievrly/fescar that referenced this pull request Oct 21, 2025
YvCeung pushed a commit to YvCeung/incubator-seata that referenced this pull request Dec 25, 2025
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.

​​[Bug] Global Lock Query with datetime condition fails due to incorrect field handling

2 participants