mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +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:
		| @@ -279,7 +279,7 @@ def _get_many_to_many_sql_for_model(model): | ||||
|         if (settings.DATABASE_ENGINE == 'oracle'): | ||||
|             m_table = f.m2m_db_table() | ||||
|             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) | ||||
|             trigger_statement = '' + \ | ||||
|             'CREATE OR REPLACE trigger %s_tr\n'    % m_table + \ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user