Giter Club home page Giter Club logo

Comments (9)

wankdanker avatar wankdanker commented on August 20, 2024

Are you using db2?

from node-odbc.

amcintyre99 avatar amcintyre99 commented on August 20, 2024

Yes, on this old 32bit box, db2 9.7fp4.

from node-odbc.

amcintyre99 avatar amcintyre99 commented on August 20, 2024

It's an old box but it's completely up to date with Ubuntu Server 12.04.2.

from node-odbc.

amcintyre99 avatar amcintyre99 commented on August 20, 2024

https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/Information%20Management/page/DB2%20and%20DB2%20Connect%209.7%20for%20Linux%20-%20Supported%20Environments

from node-odbc.

wankdanker avatar wankdanker commented on August 20, 2024

I'm pretty sure the issue has to do with the Unicode support that I enabled by default in this release. Probably shouldn't have done that. If you want to try disabling it, you can remove the UNICODE flag from binding.gyp. (https://github.com/wankdanker/node-odbc/blob/master/binding.gyp#L13).

My best guess is that in certain circumstances where ODBC writes to a buffer like in SQLDriverConnect if it is writing out a UCS2 encoding string into a buffer that is smaller than required it overflows the buffer causing errors such as you see.

I found a way to reproduce it on my end, so I should be able to nail it down.

from node-odbc.

wankdanker avatar wankdanker commented on August 20, 2024

Just pushed v0.5.19. If you get a chance to try it out, let me know if it fixes this issue or if you find any other regressions.

Thanks,

Dan

from node-odbc.

amcintyre99 avatar amcintyre99 commented on August 20, 2024

yep, all good...

u da man

from node-odbc.

wankdanker avatar wankdanker commented on August 20, 2024

Awesome. Glad to hear it. Curious to hear if your numbers increase or decrease at this version. We are avoiding some string copying now. But, also we have the added overhead of Unicode processing (as the default is set). If your numbers seem to decrease at all, try removing UNICODE from binding.gyp and recompiling.

Thanks for the feedback!

from node-odbc.

amcintyre99 avatar amcintyre99 commented on August 20, 2024

I put 5.19 into "production" today on x64 db2 10.5. Millions of calls... no issues that I can see.

But if you want me to compare one of your benchmarks at 5.14 to 5.19, let me know which one. You have a lot. :-)

from node-odbc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.