commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue-common/src/datasources/drivers/DBSIG2 Driv...


From: James Thompson
Subject: gnue-common/src/datasources/drivers/DBSIG2 Driv...
Date: Fri, 01 Aug 2003 17:33:09 -0400

CVSROOT:        /cvsroot/gnue
Module name:    gnue-common
Branch:         
Changes by:     James Thompson <address@hidden> 03/08/01 17:33:09

Modified files:
        src/datasources/drivers/DBSIG2: Driver.py 

Log message:
        possible fix for the
        select count(distinct *) from
        bug

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-common/src/datasources/drivers/DBSIG2/Driver.py.diff?tr1=1.68&tr2=1.69&r1=text&r2=text

Patches:
Index: gnue-common/src/datasources/drivers/DBSIG2/Driver.py
diff -c gnue-common/src/datasources/drivers/DBSIG2/Driver.py:1.68 
gnue-common/src/datasources/drivers/DBSIG2/Driver.py:1.69
*** gnue-common/src/datasources/drivers/DBSIG2/Driver.py:1.68   Tue Apr 29 
15:25:17 2003
--- gnue-common/src/datasources/drivers/DBSIG2/Driver.py        Fri Aug  1 
17:33:09 2003
***************
*** 581,587 ****
          whereClause = ' WHERE %s' % (additionalSQL)
  
  
!     q = "SELECT count(%s*) FROM %s%s" % (distinct, self.table, whereClause)
  
      GDebug.printMesg(5,q)
  
--- 581,590 ----
          whereClause = ' WHERE %s' % (additionalSQL)
  
  
!     if len(self._fieldReferences):
!       q = "SELECT count(%s%s) FROM %s%s" % (distinct, 
self._fieldReferences.keys()[0],self.table, whereClause)      
!     else:
!       q = "SELECT count(%s *) FROM %s%s" % (distinct, self.table, whereClause)
  
      GDebug.printMesg(5,q)
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]