Show
Ignore:
Timestamp:
11/29/05 12:43:34 (18 years ago)
Author:
jerome
Message:

Added support for SQLite3 database backend.
NEEDS TESTERS !

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storages/sqlitestorage.py

    r2591 r2593  
    123123        else :      
    124124            return "NULL" 
     125             
     126    def prepareRawResult(self, result) : 
     127        """Prepares a raw result by including the headers.""" 
     128        if result : 
     129            entries = [tuple([f[0] for f in self.cursor.description])] 
     130            for entry in result :     
     131                row = [] 
     132                for value in entry : 
     133                    try : 
     134                        value = value.encode("UTF-8") 
     135                    except : 
     136                        pass 
     137                    row.append(value) 
     138                entries.append(tuple(row))     
     139            return entries    
     140