On Sep 7, 2007, at 1:49 PM, John Siracusa wrote: > On 9/7/07, Peter Karman <[EMAIL PROTECTED]> wrote: >> On 09/07/2007 01:03 PM, Graham Barr wrote: >>> IMO, default value should only be used during create when a value is >>> not specified by the user. At all other times the method should >>> return whatever value the object holds. >> >> agreed. >> >> IIRC, I was surprised when it didn't work like this. > > Well, like I said, I can't make that behavior the default without > breaking existing code, so it'll likely be an off-by-default > per-column attribute. I'll provide a global way to turn it on, > however. Probably: > > Rose::DB::Object::Metadata::Column->default_undef_sets_null(1); > > which you can put in your common base class or wherever.
OK. Could Rose::DB::Object::Metadata have a value which it uses when creating a column object ? That way we only need to place this in one place and get the same functionality on every column. Thanks, Graham. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object