Hi Thomas,

On 05/05/2009 11:11 AM Thomas, Maxime wrote:

> We have made a script to look up in the database and generate a
> schema XML file. Then we use the persistent object database tie in to
> generate the classes and definitions. One of our table in the
> database contains a field of type datetime, and when we try to save
> an object with the persistent session, the datetime field is never
> saved : we have the following value in the database : "0000-00-00
> 00:00:00.0". So we have looked in the definition and in the class,
> and the datetime field is considered as an integer (it must be a
> string).

database specific time formats are not supported by the database
abstraction components in eZ Components, since they are not portable.
Some databases use different formats and some even do not support
special time fields at all.#

Therefore you should use integer fields to store date/time information.

Regards,
Toby
-- 
Mit freundlichen Grüßen / Med vennlig hilsen / With kind regards

Tobias Schlitt (GPG: 0xC462BC14) eZ Components Developer

t...@ez.no | eZ Systems AS | ez.no
-- 
Components mailing list
Components@lists.ez.no
http://lists.ez.no/mailman/listinfo/components

Reply via email to