fix(MySQL Node): Query Parameters parse string to number (#9011)
This commit is contained in:
@@ -81,6 +81,13 @@ export async function execute(
|
||||
|
||||
const preparedQuery = prepareQueryAndReplacements(rawQuery, values);
|
||||
|
||||
if ((nodeOptions.nodeVersion as number) >= 2.3) {
|
||||
const parsedNumbers = preparedQuery.values.map((value) => {
|
||||
return Number(value) ? Number(value) : value;
|
||||
});
|
||||
preparedQuery.values = parsedNumbers;
|
||||
}
|
||||
|
||||
queries.push(preparedQuery);
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ export const versionDescription: INodeTypeDescription = {
|
||||
name: 'mySql',
|
||||
icon: 'file:mysql.svg',
|
||||
group: ['input'],
|
||||
version: [2, 2.1, 2.2],
|
||||
version: [2, 2.1, 2.2, 2.3],
|
||||
subtitle: '={{ $parameter["operation"] }}',
|
||||
description: 'Get, add and update data in MySQL',
|
||||
defaults: {
|
||||
|
||||
Reference in New Issue
Block a user