diff --git a/packages/nodes-base/nodes/Microsoft/Sql/GenericFunctions.ts b/packages/nodes-base/nodes/Microsoft/Sql/GenericFunctions.ts index d01643c124..cff19da729 100644 --- a/packages/nodes-base/nodes/Microsoft/Sql/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Microsoft/Sql/GenericFunctions.ts @@ -102,6 +102,8 @@ export function extractValues(item: IDataObject): string { return 'NULL'; } else if (typeof val === 'string') { return `'${val.replace(/'/g, '\'\'')}'`; + } else if (typeof val === 'boolean') { + return +!!val; } return val; }) // maybe other types such as dates have to be handled as well