[Catalyst-commits] r8378 -
CatalystX-CRUD/CatalystX-CRUD/trunk/lib/CatalystX/CRUD/Model
karpet at dev.catalyst.perl.org
karpet at dev.catalyst.perl.org
Tue Sep 9 21:56:31 BST 2008
Author: karpet
Date: 2008-09-09 21:56:31 +0100 (Tue, 09 Sep 2008)
New Revision: 8378
Modified:
CatalystX-CRUD/CatalystX-CRUD/trunk/lib/CatalystX/CRUD/Model/Utils.pm
Log:
empty string for query obj instead of undef
Modified: CatalystX-CRUD/CatalystX-CRUD/trunk/lib/CatalystX/CRUD/Model/Utils.pm
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD/trunk/lib/CatalystX/CRUD/Model/Utils.pm 2008-09-09 19:54:11 UTC (rev 8377)
+++ CatalystX-CRUD/CatalystX-CRUD/trunk/lib/CatalystX/CRUD/Model/Utils.pm 2008-09-09 20:56:31 UTC (rev 8378)
@@ -174,7 +174,7 @@
sort_order => $sp,
plain_query => $p2q->{query_hash},
plain_query_str => (
- defined $p2q->{query}
+ $p2q->{query}
? $p2q->{query}->stringify
: ''
),
@@ -295,8 +295,8 @@
#Carp::carp Data::Dump::dump \@param_query;
my $joined_query = join( ' ', @param_query );
- my $sql = [];
- my $query;
+ my $sql = [];
+ my $query = '';
if ( length $joined_query ) {
More information about the Catalyst-commits
mailing list