diff options
author | Boulder Sprinters <boulder-sprinters@djangoproject.com> | 2006-11-16 19:11:32 +0000 |
---|---|---|
committer | Boulder Sprinters <boulder-sprinters@djangoproject.com> | 2006-11-16 19:11:32 +0000 |
commit | fb3a93975fe07c6589fa371971b873ab268689ef (patch) | |
tree | aeb82e0935fa26ac6079a01d18563934030ed6fa /django/db | |
parent | cd2866a36482f2679388df0dadbdd98c91529fe0 (diff) | |
download | django-fb3a93975fe07c6589fa371971b873ab268689ef.tar.gz |
boulder-oracle-sprint: Fixed "Identifier too long" errors and problems with sequence and trigger naming.
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@4080 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db')
-rw-r--r-- | django/db/backends/oracle/base.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/django/db/backends/oracle/base.py b/django/db/backends/oracle/base.py index 5334747327..5831ca47da 100644 --- a/django/db/backends/oracle/base.py +++ b/django/db/backends/oracle/base.py @@ -99,7 +99,8 @@ dictfetchmany = util.dictfetchmany dictfetchall = util.dictfetchall def get_last_insert_id(cursor, table_name, pk_name): - cursor.execute('SELECT %s_sq.currval FROM dual' % table_name) + sq_name = util.truncate_name(table_name, get_max_name_length()-3) + cursor.execute('SELECT %s_sq.currval FROM dual' % sq_name) return cursor.fetchone()[0] def get_date_extract_sql(lookup_type, table_name): |