]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Inline _get_bind_args method. 11098/head
authoroleg <giulfjmnfyhj@rambler.ru>
Tue, 5 Mar 2024 10:43:54 +0000 (13:43 +0300)
committeroleg <giulfjmnfyhj@rambler.ru>
Tue, 5 Mar 2024 10:43:54 +0000 (13:43 +0300)
lib/sqlalchemy/orm/query.py

index 3a94340052688e7bf6a99421ed149231347153df..bfc0fb36527c1fc226991391344e602d5f0121fa 100644 (file)
@@ -2871,7 +2871,7 @@ class Query(
 
         try:
             bind = (
-                self._get_bind_args(statement, self.session.get_bind)
+                self.session.get_bind(clause=statement)
                 if self.session
                 else None
             )
@@ -2880,9 +2880,6 @@ class Query(
 
         return str(statement.compile(bind))
 
-    def _get_bind_args(self, statement: Any, fn: Any, **kw: Any) -> Any:
-        return fn(clause=statement, **kw)
-
     @property
     def column_descriptions(self) -> List[ORMColumnDescription]:
         """Return metadata about the columns which would be