[Maypole] create with sql-function values

Tony Bowden tony-maypole@kasei.com
Sun, 2 May 2004 09:27:03 +0100


On Sun, May 02, 2004 at 03:43:57PM +0800, forehead wrote:
> user->create({
> 	username => $username,
> 	password => $password,
> 	create_on => 'now()'
> });

This is setting the create_on to the literal value 'now()', which, as
you say, isn't waht you want.

There's a discussion to how to do something like this on the CLass::DBI
wiki:
  http://www.class-dbi.com/cgi-bin/wiki/index.cgi?SettingDefaultValues

Tony