/[gnue]/gnue-common/src/datasources/drivers/postgresql/pypgsql/Driver.py
ViewVC logotype

Diff of /gnue-common/src/datasources/drivers/postgresql/pypgsql/Driver.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.32 by jcater, Fri May 16 15:17:58 2003 UTC revision 1.33 by siesel, Tue Oct 7 15:07:23 2003 UTC
# Line 28  Line 28 
28  # NOTES:  # NOTES:
29  #  #
30    
31  import sys  import sys,string
32  from gnue.common.datasources import GDataObjects, GConditions, GConnections  from gnue.common.datasources import GDataObjects, GConditions, GConnections
33  from gnue.common.apps import GDebug  from gnue.common.apps import GDebug
34  from gnue.common.datasources.drivers.postgresql.Base.Driver \  from gnue.common.datasources.drivers.postgresql.Base.Driver \
# Line 70  class PG_ResultSet(PGSQL_ResultSet): Line 70  class PG_ResultSet(PGSQL_ResultSet):
70              i = 0              i = 0
71              dict = {}              dict = {}
72              for f in (rs):              for f in (rs):
73                dict[self._fieldNames[i]] = f                if self._dataObject._unicodeMode:
74                    f=f.decode(self._dataObject._databaseEncoding)
75                  dict[string.lower(self._fieldNames[i])] = f
76                i += 1                i += 1
77              self._cachedRecords.append (self._recordSetClass(parent=self, \              self._cachedRecords.append (self._recordSetClass(parent=self, \
78                                                               initialData=dict))                                                               initialData=dict))

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26