Git Product home page Git Product logo

Comments (9)

TimelordUK avatar TimelordUK commented on August 30, 2024

from node-sqlserver-v8.

robertmirro avatar robertmirro commented on August 30, 2024

Is this issue still be considered for a potential fix?

from node-sqlserver-v8.

TimelordUK avatar TimelordUK commented on August 30, 2024

hello, we will need to see how the mssql driver is interacting with msnodesqlv8.

by that I mean, for a very large string it does get read in chunks from the C++ driver and re-assembled by the javascript before the callback is made. I have already checked for your demo string you provided, this works as expected.

If you were to write a test script that called msnodesqlv8 with the conn.query(sql, ......) it should work as expected. If that is the case we will need to see how mssql is reading data from the driver, if it uses queryRaw etc.

currently I have no way of reproducing this issue with msnodesqlv8 isolated and run on its own. I would have to check out the mssql code and run your query through that to see what is going on.

from node-sqlserver-v8.

TimelordUK avatar TimelordUK commented on August 30, 2024

Ok i think reading tediousjs/node-mssql#451. again he is actually using the

q = sql.query(.....)
q.on('column', c=> {
})

api - I will check tonight but this almost certainly would generate multiple callbacks on the event as the C++ sends back chunks. I will look to see how invasive it would be to change this behaviour, i was under impression it was on the callback from the query which i really would have found hard to understand.

I am working on branch "tvp" at the moment for table value parameters into stored procedures, so I will see if i can add a change to this release.

from node-sqlserver-v8.

robertmirro avatar robertmirro commented on August 30, 2024

Hi and thanks for the prompt response!

I also noticed the example in #451 is using streaming.

I'm seeing the array/split behavior without streaming with/without windows authentication:

const db = new sql.ConnectionPool(...);
const data = await db
    .request()
    .input()
    .query('SELECT <varchar(max) field that is more than 8192 bytes> FROM...');

BTW... The SP/tvp functionality would be awesome! We are releasing code soon that will be refactored to use it when it's available.

from node-sqlserver-v8.

TimelordUK avatar TimelordUK commented on August 30, 2024

is it possible to checkout the tvp branch and check this against your code above?

from node-sqlserver-v8.

TimelordUK avatar TimelordUK commented on August 30, 2024

this is now fixed on latest version 0.4.5

from node-sqlserver-v8.

robertmirro avatar robertmirro commented on August 30, 2024

Great! Thanks!

from node-sqlserver-v8.

TimelordUK avatar TimelordUK commented on August 30, 2024

guys i am now closing this issue as I believe it to be resolved on latest version. Thanks for bringing it to my attention.

from node-sqlserver-v8.

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.