Skip to content

Commit 510a274

Browse files
committed
Merge pull request pytest-dev#9 from excpt0/master
Fixed returning tuple instead ID
2 parents f6b56c0 + be31eb7 commit 510a274

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

peewee_async.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ def last_insert_id_async(self, cursor, model):
497497

498498
if seq:
499499
yield from cursor.execute("SELECT CURRVAL('%s\"%s\"')" % (schema, seq))
500-
result = yield from cursor.fetchone()
500+
result = (yield from cursor.fetchone())[0]
501501
return result
502502

503503
def close(self):

0 commit comments

Comments
 (0)