Compare commits

...

3 Commits

Author SHA1 Message Date
David Smith
37d75b0dac
Merge 15be561e27 into 21603c5b50 2025-08-30 23:18:07 -07:00
Clifford Gama
21603c5b50
Removed unused import in docs/ref/models/expressions.txt example. 2025-08-31 08:15:13 +02:00
David Smith
15be561e27 Fixed OGRInspectTest.test_time_field with memory Spatialite database. 2025-08-25 08:34:57 +01:00
2 changed files with 2 additions and 2 deletions

View File

@ -1220,7 +1220,6 @@ values. It will return the first column or value that isn't ``NULL``.
We'll start by defining the template to be used for SQL generation and We'll start by defining the template to be used for SQL generation and
an ``__init__()`` method to set some attributes:: an ``__init__()`` method to set some attributes::
import copy
from django.db.models import Expression from django.db.models import Expression

View File

@ -6,6 +6,7 @@ from django.contrib.gis.gdal import GDAL_VERSION, Driver, GDALException
from django.contrib.gis.utils.ogrinspect import ogrinspect from django.contrib.gis.utils.ogrinspect import ogrinspect
from django.core.management import call_command from django.core.management import call_command
from django.db import connection, connections from django.db import connection, connections
from django.db.backends.sqlite3.creation import DatabaseCreation
from django.test import SimpleTestCase, TestCase, skipUnlessDBFeature from django.test import SimpleTestCase, TestCase, skipUnlessDBFeature
from django.test.utils import modify_settings from django.test.utils import modify_settings
@ -233,7 +234,7 @@ def get_ogr_db_string():
return None return None
# SQLite/SpatiaLite in-memory databases # SQLite/SpatiaLite in-memory databases
if db["NAME"] == ":memory:": if DatabaseCreation.is_in_memory_db(db["NAME"]):
return None return None
# Build the params of the OGR database connection string # Build the params of the OGR database connection string