Description of CR 497118 from EBF coverletters:
A 257 error, "Implicit conversion from datatype '...' to '...' is not allowed. Use the CONVERT function to run this query." maybe be raised when "statement cache" is configured and a parameterized statement (containing '?' parameters) is executed without using the "dynamic prepare" option and it sends a NULL value for one or more of the parameters and the datatype specified for the NULL value is incompatible (no implicit conversion available) with the target column affected by the statement. Command line traceflag 7741 is added to allow the execution of those statements with success when "statement cache" is configured but those statements sending NULL values for parameters will not be cached.