You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-user@db.apache.org by Aaron Loucks <aa...@GardnerInc.com> on 2005/03/30 22:43:58 UTC

DATE / DATETIME

Is there a way to force the column type to DATE rather than DATETIME
with mysql? In my schema I have my column type set to "DATE" but the
generated sql always specifies the column as a DATETIME.

Aaron Loucks
Web Developer
Gardner, Inc.
3641 Interchange Road 
Columbus, OH 43204 
614.456.3492


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


RE: DATE / DATETIME

Posted by Thomas Fischer <fi...@seitenbau.net>.



In the generator templates, edit the db.props file for mysql and replace
the line

DATE = DATETIME

by

DATE = DATE

     Thomas


"Aaron Loucks" <aa...@GardnerInc.com> schrieb am 30.03.2005 22:43:58:

> Is there a way to force the column type to DATE rather than DATETIME
> with mysql? In my schema I have my column type set to "DATE" but the
> generated sql always specifies the column as a DATETIME.
>
> Aaron Loucks
> Web Developer
> Gardner, Inc.
> 3641 Interchange Road
> Columbus, OH 43204
> 614.456.3492
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org