commit-gnue
[Top][All Lists]
Advanced

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

r5322 - trunk/gnue-common/src/datasources/drivers/DBSIG2


From: jcater
Subject: r5322 - trunk/gnue-common/src/datasources/drivers/DBSIG2
Date: Mon, 15 Mar 2004 13:47:31 -0600 (CST)

Author: jcater
Date: 2004-03-15 13:47:30 -0600 (Mon, 15 Mar 2004)
New Revision: 5322

Modified:
   trunk/gnue-common/src/datasources/drivers/DBSIG2/ResultSet.py
Log:
let queries automatically self-reference fields, in case a select * was used as 
the query



Modified: trunk/gnue-common/src/datasources/drivers/DBSIG2/ResultSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/DBSIG2/ResultSet.py       
2004-03-15 17:35:14 UTC (rev 5321)
+++ trunk/gnue-common/src/datasources/drivers/DBSIG2/ResultSet.py       
2004-03-15 19:47:30 UTC (rev 5322)
@@ -51,6 +51,7 @@
       for t in(self._cursor.description):
         self._fieldNames.append(unicode(t[0],
                                         
self._dataObject._connection._encoding))
+        self._dataObject._fieldReferences[t[0]] = ""
       GDebug.printMesg(5, "Field names set to %s" % self._fieldNames)
 
     self._recordCount = self._cursor.rowcount or 0
@@ -73,7 +74,7 @@
             for f in (rs):
               if self._dataObject._unicodeMode and type(f)==types.StringType:
                 f = unicode(f,self._dataObject._connection._encoding)
-                
+
               dict[string.lower(self._fieldNames[i])] = f
               i += 1
             self._cachedRecords.append (self._recordSetClass(parent=self, \





reply via email to

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