On 5/16/07 12:51 AM, Jeffrey Horn wrote: > __PACKAGE__->meta->setup( > table => 'foo', > > columns => [ > foo_id => { type => 'bigint', not_null => 1 }, > nullable_int => { type => 'bigint' }, > nullable_varchar => { type => 'varchar', length => 10 }, > ], > > primary_key_columns => [ 'foo_id' ], > ); > > __PACKAGE__->meta->initialize(replace_existing => 1);
I'm not sure why that meta->initialize() call is there (leftover from copy/paste of larger code sample?), but just FYI, it's not necessary. > It seems that my Foo RDBO is returning 0 for $foo->nullable_int instead of > the expected undef. Did something change on this new version or is this a > bug? It's a bug. The fix is now in SVN and will go out to CPAN in the next release. Thanks for the report. -John ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object