Skip to content
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

Added support for TDS 7.1 #38

Closed
wants to merge 2 commits into from
Closed

Added support for TDS 7.1 #38

wants to merge 2 commits into from

Conversation

pdodde
Copy link
Contributor

@pdodde pdodde commented Jun 11, 2012

Login and SQLBatch commands are working for me now. I'll take a look at RPC requests if/when I need them.

Also found a bug in the writable buffer code.

This can be enabled on the connection with config.options.tdsVersion = "7_1"

Note that connection.execSQL is not working so there may be a problem
with RPC requests.  I added a note about this to the minimal.js example.
@pekim
Copy link
Collaborator

pekim commented Jun 11, 2012

Thank you for this. I definitely want to merge these changes, but it might have to wait for a bit.

I am currently nearing the end of big reworking of the way that incoming data is buffered and read. It'll work in much more node-like manner, and the nasty throw/catch/rewind that happens when an attempt is made to read past the end of the currently available data is got rid off. It'll also be a lot more efficient for large results fields.

Unfortunately this change is wide ranging, affecting large chunks of many files, including most of the unit tests. I'm desperate to finish this before taking on any other changes, otherwise the merge back to master will become a nightmare.

Once I've finished this work I'll work out how to apply your changes.

@pdodde
Copy link
Contributor Author

pdodde commented Jun 11, 2012

No problem. My itch is scratched. Also, the FreeTDS code was really helpful for this.

@SlashmanX
Copy link

Just a quick note to anyone having issues with TDS 7.1: This code in this pull request works perfectly as long as you use ExecSqlBatch rather than ExecSql. Thanks a million pdodde

@cliguo
Copy link

cliguo commented Jul 23, 2014

Transactions are not supported on TDS 7.1. Why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants