Skip Menu |

This queue is for tickets about the Maypole CPAN distribution.

Report information
The Basics
Id: 6856
Status: resolved
Priority: 0/
Queue: Maypole

People
Owner: Nobody in particular
Requestors: jester [...] panix.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: syntax problems in search in CDBI.pm
The search method in CDBI.pm has errors in the bit that generates the search itself; the method does not use correct syntax according to the CDBI::AbstractSearch docs. The proper line should be: $r->objects([ $self->search_where(\%values, ($order ? { order_by => $order } : {})) ]);
The order parameter is deprected but still works in the most recent version of CDBI::AbstractSearch. The next release will use the documented parameter 'order_by'. Thanks --simonflk
[SIMONFLK - Wed Nov 24 17:17:28 2004]: Show quoted text
> The order parameter is deprected but still works in the most recent > version of CDBI::AbstractSearch. The next release will use the > documented parameter 'order_by'.
That wasn't the main problem; there really was a syntax error with how the order param was passed. You'll see that the, say, 1.7 release has something like $self->search_where(\%values), ($order... where it's clear that the "order" stuff needs to be within the parens enclosing the search_where params. This has already been fixed in the current release. The use of "order_by" in place of the deprecated "order" was an additional and minor issue, but best to fix it too. Thanks.
[JESTER - Wed Nov 24 17:58:31 2004]: Show quoted text
> That wasn't the main problem; there really was a syntax error with how > the order param was passed. > > You'll see that the, say, 1.7 release has something like > > $self->search_where(\%values), ($order...
Ahh yes, I see. Show quoted text
> This has already been fixed in the current release.
I can close this then! Simon