Greetings,
I’m trying to insert null values into my MariaDB using MySQL node. I need to use Execute SQL mode so I can call functions inside my db and do verifications in case of a update, for example IFNULL.
There is no error message, the issue is that on Upsert Mode, I can’t call functions. On Execute SQL mode, the data sent as null is not recognized as null.
On my sql node you might notice I’m doing a ternary that will either insert the value or ‘’, but I tried null, ‘null’, ‘’, “”, all with and without using the option Replace Empty Strings with NULL. And it always input as empty string on my db.
I also checked on my db and not only it accepts null on all columns it is also defaults to null.
Information on your n8n setup
- n8n version: 1.53.2
- Database: MariaDB
- n8n EXECUTIONS_PROCESS setting: Not sure where I can find this info, but should be default.
- Running n8n via : npm, managed in pm2, self-hosted
- Operating system: Ubuntu 22.04.4