diff --git a/packages/nodes-base/nodes/MySql/MySql.node.ts b/packages/nodes-base/nodes/MySql/MySql.node.ts index 1d055b5ee5..db80bf1ae8 100644 --- a/packages/nodes-base/nodes/MySql/MySql.node.ts +++ b/packages/nodes-base/nodes/MySql/MySql.node.ts @@ -11,13 +11,14 @@ export class MySql extends VersionedNodeType { name: 'mySql', icon: 'file:mysql.svg', group: ['input'], - defaultVersion: 2, + defaultVersion: 2.1, description: 'Get, add and update data in MySQL', }; const nodeVersions: IVersionedNodeType['nodeVersions'] = { 1: new MySqlV1(baseDescription), 2: new MySqlV2(baseDescription), + 2.1: new MySqlV2(baseDescription), }; super(nodeVersions, baseDescription); diff --git a/packages/nodes-base/nodes/MySql/v2/actions/router.ts b/packages/nodes-base/nodes/MySql/v2/actions/router.ts index 9aa5758672..88cc1a3d08 100644 --- a/packages/nodes-base/nodes/MySql/v2/actions/router.ts +++ b/packages/nodes-base/nodes/MySql/v2/actions/router.ts @@ -19,6 +19,8 @@ export async function router(this: IExecuteFunctions): Promise= 2.1) { + connectionOptions.dateStrings = true; + } + if (options?.connectionLimit) { connectionOptions.connectionLimit = options.connectionLimit as number; }