Skip to content

Fix: fixed range exception problem for PgNumeric2BCD procedure #13

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

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

Conversation

andreaboc72
Copy link

@andreaboc72 andreaboc72 commented Apr 9, 2025

in the previous procedure is very fast but have a problem with high precision numeric, a PostgreSQL query like:
SELECT 1.22222222222222222222222222222222222222222222222222222222222222222 AS value

would trigger a Range Check Error, and then the application freeze.
I tested the application compiled using Lazarus with Zeos 8.0.0 on both Manjaro Linux and Windows.

The procedure has been revised, the gotos have been cleaned up, limit the decimal output to 64 digits and comments have been inserted in the various steps.

ref:
https://zeoslib.sourceforge.io/viewtopic.php?t=250601

andreaboc72 and others added 2 commits April 9, 2025 16:07
… digits, rewritten procedure without using goto, added comments on procedure steps
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.

1 participant