Repository navigation
fix: connection failure in Azure SQL Data Warehouse - #643
Conversation
CURSOR_CLOSE_ON_COMMIT is not supposted by Data Warehouse, making it optional. Tedious was setting it to false by default, but it is off in Server by default, so no need to send it again. https://docs.microsoft.com/en-us/sql/t-sql/statements/set-cursor-close-on-commit-transact-sql
arthurschreiber
left a comment
There was a problem hiding this comment.
Oh, this is great - and so simple. I love it! 😍
|
Once the current build on master finishes, this should be automatically released as |
|
Now that I merged and released this, I'm wondering whether this is truly the right fix here. 😅 If I understand https://docs.microsoft.com/en-us/sql/t-sql/statements/set-cursor-close-on-commit-transact-sql correctly, the server wide value for This is not something we need to fix now, but should revisit some time later in the future. @v-suhame What do you think? |
|
We sure need to fix that, sorry, my bad, I should have tested that 😞 |
|
How about setting getInitialSql() {
..
const getCursorCloseOnCommit = () => {
if (this.config.options.enableCursorCloseOnCommit === undefined)
return '';
else
return 'set cursor_close_on_commit ' + (this.config.options.enableCursorCloseOnCommit ? 'on' : 'off') + '\n';
};
...
return `...
${getCursorCloseOnCommit ()}
... |
https://docs.microsoft.com/en-us/sql/t-sql/statements/set-cursor-close-on-commit-transact-sql
Fixes #631