[RDBO] defined'ness of getters for missing not-null fields

2007-06-21 Thread Jonathan Swartz
If I create a new Rose::DB::Object without specifying some not-null fields, should the getters return a defined or undefined value? The following script provides different answers for sqlite and mysql. swartz> ./rose.pl sqlite email is not defined swartz> ./rose.pl mysql email is defined and I

Re: [RDBO] defined'ness of getters for missing not-null fields

2007-06-21 Thread Jonathan Swartz
Thanks. I had the feeling it would be a short answer. :) Jon On Jun 21, 2007, at 11:07 AM, John Siracusa wrote: > On 6/21/07, Jonathan Swartz <[EMAIL PROTECTED]> wrote: >> If I create a new Rose::DB::Object without specifying some not-null >> fields, should the getter

Re: [RDBO] defined'ness of getters for missing not-null fields

2007-06-21 Thread Jonathan Swartz
or primary column to be silently "inserted" into my search? This seems like a side-effect of using the same object to both initiate a search (with load()) and to insert a new row. I'm sure there's some history and good justification behind this decision, though. Jon O

[RDBO] neutralizing Rose::DB's reference counting

2007-09-26 Thread Jonathan Swartz
Hi, I find Rose::DB's reference counting of DBI handles confusing, and would like to effectively neutralize it for my entire project. For example I want $dbh = Rose::DB->new()->dbh to work even though it is incorrect (because it is such a common mistake to make). I'm happy to let DBI j

[RDBO] 'Operation "ne": no method found' in QueryBuilder::build_select

2007-10-29 Thread Jonathan Swartz
A few days ago we started getting this error intermittently in QueryBuilder::build_select: error_log.2007-10-29:[Mon Oct 29 15:29:37 2007] [error] [client 69.26.166.38] Operation "ne": no method found, left argument has no overloaded magic, right argument in overloaded package Rose::D

Re: [RDBO] 'Operation "ne": no method found' in QueryBuilder::build_select

2007-10-30 Thread Jonathan Swartz
On Oct 29, 2007, at 5:08 PM, John Siracusa wrote: > On 10/29/07 7:41 PM, Jonathan Swartz wrote: >> A few days ago we started getting this error intermittently in >> QueryBuilder::build_select: >> >> error_log.2007-10-29:[Mon Oct 29 15:29:37 2007] [error] [client

Re: [RDBO] 'Operation "ne": no method found' in QueryBuilder::build_select

2007-10-30 Thread Jonathan Swartz
On Oct 30, 2007, at 7:54 AM, John Siracusa wrote: > On 10/30/07, Jonathan Swartz <[EMAIL PROTECTED]> wrote: >> $column is a Rose::DB::Object::Metadata::Column::Timestamp, according >> to the error. The errors originate from all sorts of operations, but >> they al

Re: [RDBO] 'Operation "ne": no method found' in QueryBuilder::build_select

2007-11-06 Thread Jonathan Swartz
On Oct 30, 2007, at 7:54 AM, John Siracusa wrote: > On 10/30/07, Jonathan Swartz <[EMAIL PROTECTED]> wrote: >> $column is a Rose::DB::Object::Metadata::Column::Timestamp, according >> to the error. The errors originate from all sorts of operations, but >> they al

Re: [RDBO] 'Operation "ne": no method found' in QueryBuilder::build_select

2007-11-11 Thread Jonathan Swartz
> On 11/6/07 5:18 PM, Jonathan Swartz wrote: >> On Oct 30, 2007, at 7:54 AM, John Siracusa wrote: >>> Can you edit QueryBuilder.pm to see if you can at least work >>> around it? For >>> example, use $column->name ne $method instead of relying on >&g

Re: [RDBO] Anyone done more advanced caching with rdbo?

2008-01-29 Thread Jonathan Swartz
CHI works with memcached - http://cpan.uwinnipeg.ca/htdocs/CHI/CHI/ Driver/Memcached.html :) I think your proposal sounds very useful! Jon On Jan 29, 2008, at 1:52 PM, Justin Ellison wrote: > Hi list, > > First, let me apologize for sending my last email to the list - I > should > have chec