Changeset 191:955d0ff3fdbe in livinglogic.python.orasql

Show
Ignore:
Timestamp:
03/02/07 11:24:29 (13 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

If inverted logic in Record.fromdata().

Files:
3 modified

Legend:

Unmodified
Added
Removed
  • NEWS.xml

    r190 r191  
     1<section><title>Changes in 1.17.1 (released 03/02/2007)</title> 
     2<ulist> 
     3<item>Fix a bug in <method>Record.fromdata</method> that surfaced in 
     4unicode mode: <lit>BLOB</lit>s were treated as string and <lit>CLOB</lit>s 
     5as binary data.</item> 
     6</ulist> 
     7</section> 
     8 
     9 
    110<section><title>Changes in 1.17 (released 02/23/2007)</title> 
    211<ulist> 
  • setup.py

    r190 r191  
    4747args=dict( 
    4848    name="ll-orasql", 
    49     version="1.17", 
     49    version="1.17.1", 
    5050    description="Utilities for working with cx_Oracle", 
    5151    long_description=DESCRIPTION, 
  • src/ll/orasql/__init__.py

    r190 r191  
    125125        from the database data. 
    126126        """ 
    127         return cls((descr[0].lower(), _promotevalue(field, cursor, descr[1] is not BLOB)) for (descr, field) in itertools.izip(cursor.description, row)) 
     127        return cls((descr[0].lower(), _promotevalue(field, cursor, descr[1] is BLOB)) for (descr, field) in itertools.izip(cursor.description, row)) 
    128128 
    129129    def __getitem__(self, name): 
     
    542542    def fetchmany(self, rows=0, type=Record): 
    543543        sup = super(Cursor, self) 
    544         return [ type.fromdata(self, row) for row in sup.fetchmany(rows)] 
     544        return [type.fromdata(self, row) for row in sup.fetchmany(rows)] 
    545545 
    546546    def fetchall(self, type=Record): 
    547547        sup = super(Cursor, self) 
    548         return [ type.fromdata(self, row) for row in sup.fetchall()] 
     548        return [type.fromdata(self, row) for row in sup.fetchall()] 
    549549 
    550550    def fetch(self, type=Record):