Renamed SpatiaLite feature flag introduced in refs #23152.

Thanks Doug Goldstein for the suggestion.
This commit is contained in:
Tim Graham 2014-10-31 15:55:45 -04:00
parent e958c760f9
commit e548d08f24
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ class DatabaseFeatures(BaseSpatialFeatures, SQLiteDatabaseFeatures):
supports_num_points_poly = False
@cached_property
def supports_initspatialmetadata_with_transactions(self):
def supports_initspatialmetadata_in_one_transaction(self):
# SpatiaLite 4.1+ support initializing all metadata in one transaction
# which can result in a significant performance improvement when
# creating the database.

View File

@ -36,5 +36,5 @@ class SpatiaLiteCreation(DatabaseCreation):
Creates the spatial metadata tables.
"""
cur = self.connection._cursor()
arg = "1" if self.connection.features.supports_initspatialmetadata_with_transactions else ""
arg = "1" if self.connection.features.supports_initspatialmetadata_in_one_transaction else ""
cur.execute("SELECT InitSpatialMetaData(%s)" % arg)