mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Refs #33308 -- Added DatabaseOperations.compose_sql() on PostgreSQL.
This commit is contained in:
parent
1d90c9b113
commit
db7bb3b64e
4 changed files with 22 additions and 19 deletions
|
@ -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):"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue