diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-03-25 11:34:19 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-03-25 11:34:19 -0400 |
commit | 478185d05df86c73ad212a11732eb5374c8637a1 (patch) | |
tree | 16eb78dd2fba721a78a8450af1f88af19ea7dd7e /lib/sqlalchemy/dialects/postgresql/psycopg2.py | |
parent | 050dee534b888a9a8e6768d2ad16c3f2380c7c9c (diff) | |
download | sqlalchemy-478185d05df86c73ad212a11732eb5374c8637a1.tar.gz |
Correct ambiguous func / class links
:func:`.sql.expression.select`, :func:`.sql.expression.insert`
and :class:`.sql.expression.Insert` were hitting many ambiguous
symbol errors, due to future.select, as well as the PG/MySQL
variants of Insert.
Change-Id: Iac862bfc172a7f7f0cbba5353a83dc203bed376c
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/psycopg2.py')
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/psycopg2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/psycopg2.py b/lib/sqlalchemy/dialects/postgresql/psycopg2.py index 1b1c9b0ba..cf521f06f 100644 --- a/lib/sqlalchemy/dialects/postgresql/psycopg2.py +++ b/lib/sqlalchemy/dialects/postgresql/psycopg2.py @@ -178,13 +178,13 @@ Possible options for ``executemany_mode`` include: semicolon. This is the same behavior as was provided by the ``use_batch_mode=True`` flag. -* ``'values'``- For Core :func:`.insert` constructs only (including those +* ``'values'``- For Core :func:`~.sql.expression.insert` constructs only (including those emitted by the ORM automatically), the ``psycopg2.extras.execute_values`` extension is used so that multiple parameter sets are grouped into a single INSERT statement and joined together with multiple VALUES expressions. This method requires that the string text of the VALUES clause inside the INSERT statement is manipulated, so is only supported with a compiled - :func:`.insert` construct where the format is predictable. For all other + :func:`~.sql.expression.insert` construct where the format is predictable. For all other constructs, including plain textual INSERT statements not rendered by the SQLAlchemy expression language compiler, the ``psycopg2.extras.execute_batch`` method is used. It is therefore important |