Changeset 178:841b24fa1e16 in livinglogic.python.orasql

Show
Ignore:
Timestamp:
10/18/06 17:20:28 (13 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Tags:
rel-1-12-2
Message:

Fixed a bug that showed up when an index and a foreign key
of the same name existed.

Files:
3 modified

Legend:

Unmodified
Added
Removed
  • NEWS.xml

    r177 r178  
     1<section><title>Changes in 1.12.2 (released 10/18/2006)</title> 
     2<ulist> 
     3<item>Fixed a bug that showed up when an index and a foreign key 
     4of the same name existed.</item> 
     5</ulist> 
     6</section> 
     7 
     8 
    19<section><title>Changes in 1.12.1 (released 09/19/2006)</title> 
    210<ulist> 
  • setup.py

    r177 r178  
    4747args=dict( 
    4848    name="ll-orasql", 
    49     version="1.12.1", 
     49    version="1.12.2", 
    5050    description="Utilities for working with cx_Oracle", 
    5151    long_description=DESCRIPTION, 
  • src/ll/orasql/__init__.py

    r177 r178  
    14131413        """ 
    14141414        (connection, cursor) = self.getcursor(connection) 
    1415         cursor.execute("select constraint_type from all_constraints where owner=nvl(:owner, user) and constraint_name=:name", owner=self.owner, name=self.name) 
     1415        cursor.execute("select constraint_type from all_constraints where owner=nvl(:owner, user) and constraint_name=:name and constraint_type in ('U', 'P')", owner=self.owner, name=self.name) 
    14161416        rec = cursor.fetchone() 
    14171417        if rec is not None: