summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjonathan vanasco <jonathan@2xlp.com>2020-06-30 12:31:58 -0400
committersqla-tester <sqla-tester@sqlalchemy.org>2020-06-30 12:31:58 -0400
commitb421c51b94fdef2bc542b0a40bfb21490b23ca15 (patch)
treea0d207ddd4c614c57ffe60631856fc08ef559833
parent8856fb2983bf1e65e983440132fe2132880d5c83 (diff)
downloadsqlalchemy-b421c51b94fdef2bc542b0a40bfb21490b23ca15.tar.gz
added semicolon (;) to improve warning message clarity
### Description Added a semicolon to improve the clarity of warning message. I actually had a table named `backend`, and thought it was involved! While updating the code, I noticed no test that directly tests for this warning message. There are tests for the `Can't sort tables for DROP;` prefix of this message and the `exc.CircularDependencyError`; and some tests for the `exc.CircularDependencyError` message itself. I couldn't find any test for this particular message though. (Just thought I'd bring that up) No issue created, because this is minor. Closes: #5431 Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5431 Pull-request-sha: 87fb5733ff4fc1a13dd94277716814ea852f654c Change-Id: I87a504d30a7dd5155c34f7d7f30b2116d0d3cd3f
-rw-r--r--lib/sqlalchemy/sql/ddl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/ddl.py b/lib/sqlalchemy/sql/ddl.py
index 17e3be2da..3c23b50ca 100644
--- a/lib/sqlalchemy/sql/ddl.py
+++ b/lib/sqlalchemy/sql/ddl.py
@@ -804,7 +804,7 @@ class SchemaDropper(DDLBase):
util.warn(
"Can't sort tables for DROP; an "
"unresolvable foreign key "
- "dependency exists between tables: %s, and backend does "
+ "dependency exists between tables: %s; and backend does "
"not support ALTER. To restore at least a partial sort, "
"apply use_alter=True to ForeignKey and "
"ForeignKeyConstraint "