mirror of
https://github.com/django/django.git
synced 2025-07-05 18:29:11 +00:00
[soc2009/multidb] Updated createcachetable management command for new multidb transaction API
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@10919 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
c233618d4b
commit
7c797e138d
@ -49,4 +49,4 @@ class Command(LabelCommand):
|
|||||||
curs.execute("\n".join(full_statement))
|
curs.execute("\n".join(full_statement))
|
||||||
for statement in index_output:
|
for statement in index_output:
|
||||||
curs.execute(statement)
|
curs.execute(statement)
|
||||||
transaction.commit_unless_managed()
|
transaction.commit_unless_managed(using=alias)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user