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

connection becomes stale due to longer waiting time for new requests #103

Open
skapid opened this issue Apr 13, 2016 · 0 comments
Open

connection becomes stale due to longer waiting time for new requests #103

skapid opened this issue Apr 13, 2016 · 0 comments

Comments

@skapid
Copy link

skapid commented Apr 13, 2016

When using pool, and when an open connection did not receive any new requests for a long time, the connection becomes stale, and any new requests are failing out.

clach04 pushed a commit to clach04/node-odbc__DO_NOT_USE that referenced this issue Dec 17, 2020
When calling stored procedures with output parameters, the output is
always blank. This is due to using the wrong size field when querying
SQLProcedureColumns to retrieve the column size for each parameter. This
field is defined by ODBC as an INTEGER, but the pointer is read from a
SMALLINT instead. This results in the size being read from only the top
2 bytes of the 4 byte value. On little endian systems, this will be OK
so long as the size is < 32k. On big endian systems it will always be 0
unless the size is > 32k or negative; regardless it will always be
*wrong*.

Signed-off-by: Kevin Adler <[email protected]>

Fixes w1nk#103
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

No branches or pull requests

1 participant