-
Notifications
You must be signed in to change notification settings - Fork 80
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
Issue Related to Prepare or Bind #86
Comments
Hi @hansaliyad1 , could you just confirm what version of It looks like your production environment is on version 2.3.2, which had a bug on WIndows systems where UNICODE caused some errors with things like column names to be truncated. It was fixed for column names, error messages, and error states, but I see that your statement is also truncated. I will try to confirm that that is still broken in 2.3.3 and fix it today. Anyways, the fix: In your production environment, run And just FYI, the issue board for 2.x is here: https://github.com/markdirish/node-odbc/issues |
@markdirish Can't thank you enough! I was working on this all weekend. Thank you so much! In my development environment, I have odbc version 2.3.0. I did try to install 2.3.3 on production but it was giving me the same issue so I downgraded to 2.3.0. It works great now. Thank you so much!! |
@hansaliyad1 , did your output look exactly the same in 2.3.3, or was it just the statement that was broken? On Windows 64-bit machines, If you are certain you got the |
@markdirish The output didn't look exactly the same! Only ttl_recs was returned as t. Since development environment is using 2.3.0, I will use that version for now and will upgrade it in future updates. Thank you for your time and prompt response. I really appreciate it. |
@markdirish Just FYI, I did try to use a 2.3.3 version again because in 2.3.0, the ODBC connection was dropping randomly and it never re-connects. I have to restart the Node application to make it connect. Before start using 2.3.3, I ran
|
* Add TypeScript definitions * Include custom TypeScript classes (Result, NodeOdbcError, OdbcError) to make it easier to interact with values returned from functions * Add generics to result (wankdanker#86) Fixes wankdanker#56 Signed-off-by: Mark Irish <[email protected]> Signed-off-by: Benjamin J Ferguson <[email protected]> Co-authored-by: Benjamin J Ferguson <[email protected]> Co-authored-by: Benjamin J Ferguson <[email protected]>
Hello,
I am having this weird issue with ODBC just on my production environment but not on development. I have this below function. When this function is called, it returns a result based on what my code can decide if the record exists or not.
In the development environment, the result I get back is below.
In the production environment, with the same function and same ODBC connection, the result I get back is below.
On production, ttl_recs changes to just t even though the query is
select count(*) as ttl_recs
. Both the production and development environment is windows server 2016 with NodeJS version of 12.18.2 on development and 12.18.3 on production. I will really appreciate any assistance with this weird issue. Thank you!The text was updated successfully, but these errors were encountered: