Wappler Version : 2.1.5
Operating System : Windows 10
Steps
Server Action > Database Update (SQL Server, Classic ASP)
Set a numeric value (INT) to NULL
Actual behavior
Sets Value to ‘NULL’
How to reproduce
Server Connect to SQL Database
Server Connect Action Database Update
Update Table Set Field (Which is an INT) = NULL
Can be resolved by manually changing the DMXConnect script and removing the surrounding single quotes
from "query": "UPDATE Contact\nSET Cont_Status = :P1 /* {{$_POST.StatusDropdown}} */, Cont_Deleted = 'NULL'\nWHERE Cont_ContactId = :P2 /* {{$value}} */",
@patrick setting {{null}} doesn’t work for me. In the following example, I am trying to set ‘data_order’ to NULL irrespective of what is in the DB column already.
So whether a digit has been previously entered or not, it should still allow this query to put a NULL in place, shouldn’t it? Or maybe {{null}} should be put in the condition column?
@UKRiggers
What server model and database are you using?
I just tested with PHP/Mysql with an INT(5) field type and on update {{null}} sets the field to null.