I am moving from the MS Access firewall to mySQL. It worked, but now it doesn’t, and I cannot understand the problem.
<cfargument required="false" name="expiry" type="any" default="" />
<cfquery datasource='#arguments.dsn#'>
INSERT INTO users(expiry)
VALUES (<cfqueryparam value="#arguments.expiry#" cfsqltype="CF_SQL_TIMESTAMP"/>)
</cfquery>
Database field set to datetime and defaults to NULL
The argument is populated from a form field that is either empty or a date confirmed by javascript. He gasps in the empty form field.
source
share