summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2021-02-10 10:36:52 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2021-02-10 10:36:52 -0500
commit89dc4562adb38367ee5fabbcc04ee44968af4906 (patch)
tree0099d5317799c7c93b5427be73bb77e841c5b3f4 /lib/sqlalchemy/orm
parentc36391bcd2936ee3eca0f6e359da5de6fcd93bd1 (diff)
downloadsqlalchemy-89dc4562adb38367ee5fabbcc04ee44968af4906.tar.gz
Don't pre-calc inserted primary key if no getter
the _setup_ins_pk_from_empty() method provides a placeholder result for inserted_primary_key_rows that is not typically going to be invoked. For an executemany (or even execute) that isn't already stating it wants primary key values up front, defer this computation until explicitly requested. Change-Id: I6295eafbccc96a0422b9cac34e79db7924c702ca References: https://github.com/sqlalchemy/sqlalchemy/discussions/5893#discussioncomment-356155
Diffstat (limited to 'lib/sqlalchemy/orm')
0 files changed, 0 insertions, 0 deletions