[Bps-public-commit] r11346 - DBIx-SearchBuilder/trunk/SearchBuilder/Handle

ruz at bestpractical.com ruz at bestpractical.com
Tue Apr 1 19:53:36 EDT 2008


Author: ruz
Date: Tue Apr  1 19:53:36 2008
New Revision: 11346

Modified:
   DBIx-SearchBuilder/trunk/SearchBuilder/Handle/mysql.pm

Log:
* fix version check

Modified: DBIx-SearchBuilder/trunk/SearchBuilder/Handle/mysql.pm
==============================================================================
--- DBIx-SearchBuilder/trunk/SearchBuilder/Handle/mysql.pm	(original)
+++ DBIx-SearchBuilder/trunk/SearchBuilder/Handle/mysql.pm	Tue Apr  1 19:53:36 2008
@@ -84,7 +84,7 @@
     return $self->SUPER::DistinctQuery( $statementref, $sb, @_ )
         if $sb->_GroupClause || $sb->_OrderClause !~ /(?<!main)\./;
 
-    if ( substr($self->DatabaseVersion, 1) == 4 ) {
+    if ( substr($self->DatabaseVersion, 0, 1) == 4 ) {
         local $sb->{'group_by'} = [{FIELD => 'id'}];
 
         my ($idx, @tmp, @specials) = (0, ());



More information about the Bps-public-commit mailing list