fix(MSSQL Node): Support tdsVersion option

This commit is contained in:
Shao Yu-Lung (Allen) 2022-09-22 08:41:44 +08:00 committed by GitHub
parent 0aeb55dcfd
commit 89d2d10c52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 0 deletions

View file

@ -64,5 +64,34 @@ export class MicrosoftSql implements ICredentialType {
default: 15000, default: 15000,
description: 'Request timeout in ms', description: 'Request timeout in ms',
}, },
{
displayName: 'TDS Version',
name: 'tdsVersion',
type: 'options',
options: [
{
name: '7_4 (SQL Server 2012 ~ 2019)',
value: '7_4',
},
{
name: '7_3_B (SQL Server 2008R2)',
value: '7_3_B',
},
{
name: '7_3_A (SQL Server 2008)',
value: '7_3_A',
},
{
name: '7_2 (SQL Server 2005)',
value: '7_2',
},
{
name: '7_1 (SQL Server 2000)',
value: '7_1',
},
],
default: '7_4',
description: 'The version of TDS to use. If server doesn\'t support specified version, negotiated version is used instead.',
},
]; ];
} }

View file

@ -271,6 +271,7 @@ export class MicrosoftSql implements INodeType {
options: { options: {
encrypt: credentials.tls as boolean, encrypt: credentials.tls as boolean,
enableArithAbort: false, enableArithAbort: false,
tdsVersion: credentials.tdsVersion as string,
}, },
}; };