summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFlorian Apolloner <florian@apolloner.eu>2022-12-12 09:54:49 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-12-12 10:36:45 +0100
commitdb7bb3b64e469fbb5c79e7b5b2fcb890434aa60f (patch)
treefc995dec5ccb21baf840b2303b5e59df67e50bfa /tests
parent1d90c9b1132482d446ca8375c151e894002c9e8d (diff)
Refs #33308 -- Added DatabaseOperations.compose_sql() on PostgreSQL.
Diffstat (limited to 'tests')
-rw-r--r--tests/inspectdb/tests.py22
1 files changed, 12 insertions, 10 deletions
diff --git a/tests/inspectdb/tests.py b/tests/inspectdb/tests.py
index 66b2eb8260..7944e5f221 100644
--- a/tests/inspectdb/tests.py
+++ b/tests/inspectdb/tests.py
@@ -563,17 +563,19 @@ class InspectDBTransactionalTests(TransactionTestCase):
"CREATE SERVER inspectdb_server FOREIGN DATA WRAPPER file_fdw"
)
cursor.execute(
- """\
- CREATE FOREIGN TABLE inspectdb_iris_foreign_table (
- petal_length real,
- petal_width real,
- sepal_length real,
- sepal_width real
- ) SERVER inspectdb_server OPTIONS (
- filename %s
+ connection.ops.compose_sql(
+ """
+ CREATE FOREIGN TABLE inspectdb_iris_foreign_table (
+ petal_length real,
+ petal_width real,
+ sepal_length real,
+ sepal_width real
+ ) SERVER inspectdb_server OPTIONS (
+ filename %s
+ )
+ """,
+ [os.devnull],
)
- """,
- [os.devnull],
)
out = StringIO()
foreign_table_model = "class InspectdbIrisForeignTable(models.Model):"