Comments (9)
from node-sqlserver-v8.
Is this issue still be considered for a potential fix?
from node-sqlserver-v8.
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.
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.
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.
is it possible to checkout the tvp branch and check this against your code above?
from node-sqlserver-v8.
this is now fixed on latest version 0.4.5
from node-sqlserver-v8.
Great! Thanks!
from node-sqlserver-v8.
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)
- Change node-gyp path to download nodejs headers from msnodesqlv8 installation HOT 2
- Why are database field names garbled when using Chinese fields? HOT 3
- msnodesqlv8 can't find sqltypes.h HOT 2
- install msnodesqlv8 through npm failed HOT 2
- Keep saying Module not found of sqlserverv8 HOT 6
- Question: Using prepared query with Pool
- unable to build on CentOS7 HOT 3
- Prebuilt binaries for Node 20 / alpine HOT 3
- Cannot use without 'require'? HOT 1
- Module not found: Can't resolve '../build/Release/sqlserverv8' HOT 10
- Module did not self-register: sqlserverv8.node HOT 7
- npm install --save msnodesqlv8 fails MSBuild.exe failed with exit code: 1 HOT 5
- import { SqlClient } from "msnodesqlv8/types"; Cannot find module 'msnodesqlv8/types' or its corresponding type declarations HOT 1
- Unable to initialize msnodesql during Hot Module Reload (HMR) HOT 2
- Security vulnerability detected in latest HOT 1
- uncaughtException: Cannot read properties of null (reading 'query') HOT 3
- `ConcreteColumnType.parseSS` method tampers with plain date strings HOT 3
- Cannot find module '../build/Release/sqlserverv8.node' - Windows 10 / node.js v20.11.0/v21.6.1 HOT 1
- npm install results in LNK1127: library is corrupt HOT 1
- Uncaught Exception: static Sybase = new ServerDialect("Sybase")
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-sqlserver-v8.