[Solar-talk] updated col solar svn
Paul M Jones
pmjones at ciaweb.net
Wed Jul 11 08:57:01 CDT 2007
On Apr 27, 2007, at 7:29 AM, Jeff Surgeson wrote:
> Do I have this arse about face?
>
> the created column (if exists) is initialized with timestamp when
> record is
> initially created and never changes, so that you always have a
> reference to
> when it was first created, correct?
>
> the updated column (if exists) is initialized with timestamp when
> record is
> initially created however thereafter each time the record is
> updated this
> should be updated with current timestamp, so that you have a
> record of last
> change, correct?
>
> At least this is the way I see it should work, if I am correct in my
> assumption then why in Solar_Sql_Model::_update() line 1692 does
> update()
> only update the updated column if it is empty?
>
> That way after creation created and updated both reflect creation
> timestamps
> irrespective of number of times updated.
>
> This does not make sense to me, am I missing something?
I don't think you're missing anything. The way you describe does
make sense. I will modify SVN to always set the 'updated' value.
Thanks for picking this out. :-)
--
Paul M. Jones <http://paul-m-jones.com>
Solar: Simple Object Library and Application Repository
for PHP5. <http://solarphp.com>
Join the Solar community wiki! <http://solarphp.org>
Savant: The simple, elegant, and powerful solution for
templates in PHP. <http://phpsavant.com>
More information about the Solar-talk
mailing list