Django

Code

Changeset 5883

Show
Ignore:
Timestamp:
08/13/07 22:26:42 (1 year ago)
Author:
adrian
Message:

Removed 'LIMIT 1' from the [5882] change, as it's not supported by Oracle

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/db/models/base.py

    r5882 r5883  
    214214        if pk_set: 
    215215            # Determine whether a record with the primary key already exists. 
    216             cursor.execute("SELECT 1 FROM %s WHERE %s=%%s LIMIT 1" % \ 
     216            cursor.execute("SELECT 1 FROM %s WHERE %s=%%s" % \ 
    217217                (backend.quote_name(self._meta.db_table), backend.quote_name(self._meta.pk.column)), 
    218218                self._meta.pk.get_db_prep_lookup('exact', pk_val))