mirror of
https://github.com/django/django.git
synced 2025-07-06 18:59:13 +00:00
[boulder-oracle-sprint] fixed m2m sequence names
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@4012 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
abd5b14d6f
commit
86b9b25fb3
@ -279,7 +279,7 @@ def _get_many_to_many_sql_for_model(model):
|
|||||||
if (settings.DATABASE_ENGINE == 'oracle'):
|
if (settings.DATABASE_ENGINE == 'oracle'):
|
||||||
m_table = f.m2m_db_table()
|
m_table = f.m2m_db_table()
|
||||||
sequence_name = truncate_name('%s_sq' % m_table, backend.get_max_name_length())
|
sequence_name = truncate_name('%s_sq' % m_table, backend.get_max_name_length())
|
||||||
sequence_statement = 'CREATE SEQUENCE %s_sq;' % sequence_name
|
sequence_statement = 'CREATE SEQUENCE %s;' % sequence_name
|
||||||
final_output.append(sequence_statement)
|
final_output.append(sequence_statement)
|
||||||
trigger_statement = '' + \
|
trigger_statement = '' + \
|
||||||
'CREATE OR REPLACE trigger %s_tr\n' % m_table + \
|
'CREATE OR REPLACE trigger %s_tr\n' % m_table + \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user