mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
fix(MSSQL Node): Support tdsVersion option
This commit is contained in:
parent
0aeb55dcfd
commit
89d2d10c52
|
@ -64,5 +64,34 @@ export class MicrosoftSql implements ICredentialType {
|
|||
default: 15000,
|
||||
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.',
|
||||
},
|
||||
];
|
||||
}
|
||||
|
|
|
@ -271,6 +271,7 @@ export class MicrosoftSql implements INodeType {
|
|||
options: {
|
||||
encrypt: credentials.tls as boolean,
|
||||
enableArithAbort: false,
|
||||
tdsVersion: credentials.tdsVersion as string,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue