I have a database table with an int column, which can also be null. Adding an int to a column is fine, but setting it back to null causes an error. Since ColdFusion does not support null values, I usually pass the value as an empty string:
local.myParam = "";
This leads to an error, however, that "" does not have a numeric number.
post.addParam(name="parentId", cfsqltype="CF_SQL_INTEGER", value=arguments.parentId);
Any ideas how I can get around this limitation?
source share