mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
🐛 Handle bit (boolean) values correctly when inserting (#1949)
This commit is contained in:
parent
29eab1dbcd
commit
b2e2cfa773
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue