[1.7.x] Fixed #23152 -- Added support for transactional Spatialite metadata initialization.
Thanks Doug Goldstein for the initial patch.
Backport of 57e40551e4
from master
This commit is contained in:
parent
ffd31c017f
commit
9c9f35ed27
|
@ -95,7 +95,8 @@ class SpatiaLiteCreation(DatabaseCreation):
|
|||
# InitSpatialMetaData() transparently creates the spatial metadata
|
||||
# tables
|
||||
cur = self.connection._cursor()
|
||||
cur.execute("SELECT InitSpatialMetaData()")
|
||||
arg = "1" if self.connection.ops.spatial_version >= (4, 1, 0) else ""
|
||||
cur.execute("SELECT InitSpatialMetaData(%s)" % arg)
|
||||
else:
|
||||
# Spatialite < 2.4 -- Load the initial SQL
|
||||
|
||||
|
|
|
@ -34,3 +34,6 @@ Bugfixes
|
|||
``AlterIndexTogether`` or ``AlterUniqueTogether`` (:ticket:`23614`).
|
||||
|
||||
* Updated the first day of the week in the Ukrainian locale to Monday.
|
||||
|
||||
* Added support for transactional spatial metadata initialization on
|
||||
SpatiaLite 4.1+ (:ticket:`23152`).
|
||||
|
|
Loading…
Reference in New Issue