We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5232cb commit e36553aCopy full SHA for e36553a
src/gino/crud.py
@@ -798,7 +798,7 @@ async def _execute_and_fetch(conn, query):
798
key_getter = context.compiled._key_getters_for_crud_column[2]
799
compiled_params = context.compiled_parameters[0]
800
last_row_id = context.get_lastrowid()
801
- if last_row_id is not None:
+ if last_row_id is not None or table.primary_key:
802
lookup_conds = [
803
c == last_row_id
804
if c is table._autoincrement_column
0 commit comments