Changeset 2593 for pykota/trunk/pykota/storages/sql.py
- Timestamp:
- 11/29/05 12:43:34 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/sql.py
r2464 r2593 30 30 31 31 class SQLStorage : 32 def prepareRawResult(self, result) :33 """Prepares a raw result by including the headers."""34 if result.ntuples() > 0 :35 entries = [result.listfields()]36 entries.extend(result.getresult())37 nbfields = len(entries[0])38 for i in range(1, len(entries)) :39 fields = list(entries[i])40 for j in range(nbfields) :41 field = fields[j]42 if type(field) == StringType :43 fields[j] = self.databaseToUserCharset(field)44 entries[i] = tuple(fields)45 return entries46 47 32 def createFilter(self, only) : 48 33 """Returns the appropriate SQL filter."""