Revision 661
- Date:
- 2017/08/17 13:48:26
- Files:
Legend:
- Added
- Removed
- Modified
-
utf8/plugins/sphinx/lib/sphinx/Keeper.pm
112 112 warn "SEARCH QUERY: $query\n" if $DEBUG; 113 113 warn "SEARCH VALUES: ".Dumper( \@values ) if $DEBUG; 114 114 my $sth = $self->SQL->prepare( $query ); 115 $sth->execute( @values ); 116 if ( $count ) { 117 $result = $sth->fetchrow_arrayref; 118 warn "COUNT: ". Dumper( $result ) if $DEBUG; 119 $result = $result->[0]; 115 if ( $sth->execute( @values ) ) { 116 if ( $count ) { 117 $result = $sth->fetchrow_arrayref; 118 warn "COUNT: ". Dumper( $result ) if $DEBUG; 119 $result = $result->[0]; 120 } else { 121 $result = []; 122 while ( my $row = $sth->fetchrow_hashref ) { 123 push @$result, $row; 124 } 125 } 120 126 } else { 121 $result = []; 122 while ( my $row = $sth->fetchrow_hashref ) { 123 push @$result, $row; 124 } 127 warn "ERROR in statement: ".$sth->errstr."\n"; 128 warn "SEARCH QUERY: $query\n"; 129 warn "SEARCH VALUES: ".Dumper( \@values ); 125 130 } 126 131 return $result; 127 132 }