Re: explicitly setting timestamps in DataObject

From: Date: Thu, 24 Feb 2005 00:12:17 +0000
Subject: Re: explicitly setting timestamps in DataObject
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17666@lists.php.net to get a copy of this message
On Thu, 24 Feb 2005 00:58:05 +0100, Norbert Mocsnik <lists@norbert.mocsnik.hu> wrote: > Sasha Sklar wrote: > > The insert statement is not including created_by. But when I output the > > member var before and after the insert, it shows as being there. > > > > Any clues? > > Looks like you have an outdated databasename.ini file > which doesn't contain the created_by field, or it's type > has been changed. Are you sure you ran the generator > script after modifying the database structure last time? > This used to be a common problem for me. > I quote DB/DataObject.php: // dont insert data into mysql timestamps // use query() if you really want to do this!!!! if ($v & DB_DATAOBJECT_MYSQLTIMESTAMP) { continue; } The same is written in update(). -- Justin Patrin

« previous php.pear.general (#17666) next »