Hi Andrea,
The field is datetime in my table.
On Oct 10, 4:40 pm, Andrea Campolonghi <
and...@getrailo.org> wrote:
> Antonio,
>
> what kind of datatype has your mysql table for the field you want to save?
>
> Andrea
>
> On Oct 10, 2011, at 4:34 PM, Antonio Perchinumio wrote:
>
> > I have a problem in migration from Coldfusion 7 to Railo 3.2, the following statement work fine in Colfdfusion 7: "<cfqueryparamcfsqltype="cf_sql_timestamp" value="#now()#" />". But in Railo an exception is launched: the value [{ts '2011-09-01 10:30:01'}] is too large, defined maxlength is [19] but length of value is [26].
>
> > The problem is the data typedatetime(I use Mysql 5) that was saved correctly in Coldfusion 7, but Railo throws the exception above.
>
> > This example work fine in Coldfusion 7:
> > <cfqueryparamcfsqltype="cf_sql_timestamp" value="#now()#" />
>
> > This example work fine in Railo:
> > <cfqueryparamcfsqltype="cf_sql_timestamp" value="#CreateODBCDate(now())#" />