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

Improve transaction handling in Prism Driver & Decimal validation #514

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

gartens
Copy link
Contributor

@gartens gartens commented Aug 29, 2024

The main contribution of this PR are improvements to transaction handling in the Prism driver and decimal validation:

  • Ensure that statements objects used in the Prism driver belong to the current transaction (with a test that would have exposed this)
  • Ignore leading 0 in decimal number validation to match the documentation
  • Throw an exception when trying to create a statement for an inactive transaction (this exposed an issue in anyPrepareQuery)
  • Improve type derivation in prepared statements
  • Replace a few subtractions with the more appropriate Integer.compare

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.

2 participants