-
Notifications
You must be signed in to change notification settings - Fork 464
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
Update tedious version #1312
Update tedious version #1312
Conversation
That's an interesting error. It should never happen - when connecting to an SQL Server instance you always connect to some database, and that database always has some encoding that should be send to the client, so I'm wondering how the tests run into this. 🤔 |
Ok, I figured out that this happens because |
Hey @arthurschreiber - thanks for taking the initiative to look into this. The tight coupling/use of the validate method has always caused problems and I'm not entirely sure why it's done but it's how it is for now... Ideally this lib would abstract the typings away and if you're going to do that too, then I'll have no choice! 😅 |
It's going to break for sure, because the types returned by Anyway, node-mssql/lib/tedious/request.js Line 673 in 319993f
Lines 153 to 192 in 319993f
Maybe you should also have your own validation logic then? 🤔 On another note, I'm really wondering what this embedding of values into batch statements is all about? Batch statements in TDS don't support parameters, and it looks like this is trying to emulate them by embedding variable declaration into the SQL statements directly? 😮 |
Is this PR still in progress or is it rejected for now because of the mentioned problems? |
This PR is still in progress, the upgrade needs to happen, but I need to find the time to rework the validation area appropriately |
47bef91
to
8719ae7
Compare
0b5413b
to
a7fc43f
Compare
a7fc43f
to
f73c1c7
Compare
What this does:
Update tedious for a v8 release