-
Notifications
You must be signed in to change notification settings - Fork 4
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
"Numeric value out of range" then filtering on a numeric table column #11
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This is still an issue. |
Sorry, my fault that this got marked stale. I'll take a look at this today. I'm curious as to what SQL it is generating. Could you maybe change the |
I'm sorry for not responding, yet. Made a ticket for my colleague, but he had not the time to look into it, yet. I think it will take a while, till we're able to look on this again. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
unstale |
Hi @markdirish
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
unstale |
Sorry Markus, didn't mean to let this get stale. I'm pretty sure I know the issue, the ODBC driver gets upset when it tries to pass a signed smallint value to an unsigned smallint. This is a problem in the odbc connector package. I have a big update to that package coming hopefully this week or next that should fix a lot of these data type issues. I will be sure to update this issue when I push it. |
No need to say sorry - everything fine so far! |
@markdirish : You mentioned a new version of the ODBC-driver coming up soon. |
@markus-hsk and @nedi-dev I know this is a long time later, but 2.4.0 beta is out now and should be available by running I am fairly sure this if fixed in that push. I was able to recreate the error on the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
Bump connection version to ^2.4.0 to fix underlying issues Fixes loopbackio#11 Signed-off-by: Mark Irish <[email protected]>
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
unstale |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
We are getting the Error
[IBM][System i Access ODBC Driver]Column 3: Numeric value out of range.
by using the loopback-connector-ibmi. We debugged through the progress and found out, that it happens on filtering records by a numeric field which is allowed to contain 7 digits. The given filter got a value with 8 digits.Our database table column is defined like this:
KOATRNR NUMERIC(7,0)
Our filter-Json, which we are passing to the ODBC-connector, looks like this:
{where: {KOARTNR: {inq: [1,1234567,12345678]}}}
As you can see, the last value contains a number with 8 digits, one more as the table column is capable to store. The interesting point is, a simple SQL-SELECT like this
SELECT * FROM table WHERE KOARTNR IN (1,1234567,12345678)
works without an error.Based on the above data we are now assuming, that there might be a bug inside the connector.
Currently using these versions:
The text was updated successfully, but these errors were encountered: