summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2007-08-14 03:26:42 +0000
committerAdrian Holovaty <adrian@holovaty.com>2007-08-14 03:26:42 +0000
commit08c47803bba2e452499d265ceb08ef3904741323 (patch)
tree34e62c3b409e377ecf7b582ae7a8124fc3b5a564
parent947ca5123e2e88a2226ed3b39711706d5d609e32 (diff)
Removed 'LIMIT 1' from the [5882] change, as it's not supported by Oracle
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5883 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/db/models/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/base.py b/django/db/models/base.py
index eced22ab43..8b021978ed 100644
--- a/django/db/models/base.py
+++ b/django/db/models/base.py
@@ -213,7 +213,7 @@ class Model(object):
record_exists = True
if pk_set:
# Determine whether a record with the primary key already exists.
- cursor.execute("SELECT 1 FROM %s WHERE %s=%%s LIMIT 1" % \
+ cursor.execute("SELECT 1 FROM %s WHERE %s=%%s" % \
(backend.quote_name(self._meta.db_table), backend.quote_name(self._meta.pk.column)),
self._meta.pk.get_db_prep_lookup('exact', pk_val))
# If it does already exist, do an UPDATE.