-
Notifications
You must be signed in to change notification settings - Fork 102
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
Errors when binding strings with MSAccess ODBC Driver #87
Comments
Agreed! I know I had played around with that value many times trying to figure out what worked best for most drivers. So, it landed at 0. I think I had even tried setting it to the length of the incoming string. But that must have been wrong for something. Might have to check the git history for that. |
Yeah, that seems to line up with the SQL reference here: |
One thing to consider is: Is |
I read in a couple places that it is the number of characters. I'll play with the value a bit and let you know how MSAccess behaves. |
Finally got around to testing this. MS Access expects it to be the length of the string. Was able to successfully execute a prepared statement with parameters when I set |
Ah, the other challenge to this:
|
I'm seeing a similar result with the Teradata 15 driver when I use a string parameter. |
The error still remains: { message: '[Microsoft][Controlador ODBC Microsoft Access]Valor de precisión no válido ', |
The ODBC api expects the
ColumnSize
of the BindParameter call for strings to be the column size. node-odbc is setting it to 0. This causes the MSAccess ODBC Driver to throwHY104
Invalid precision value
.I'm not immediately sure where we can get the column size from on the fly, sigh. What a silly requirement of the api.
https://github.com/wankdanker/node-odbc/blob/de66ae910d05b337adec3f3405b1c92618087545/src/odbc.cpp#L689
The text was updated successfully, but these errors were encountered: