Skip to content

Commit 79390ae

Browse files
committed
fix: Last insert id for MySQL
1 parent 5aded27 commit 79390ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/integration_tests/tokenserver/test_support.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def _last_insert_id(self):
178178
if self.engine.name == "sqlite":
179179
cursor = self._execute_sql("SELECT LAST_INSERT_ROWID() AS id", {})
180180
else:
181-
cursor = self._execute_sql("SELECT LAST_INSERT_ID()", {})
181+
cursor = self._execute_sql("SELECT LAST_INSERT_ID() AS id", {})
182182
(id,) = cursor.fetchone()
183183
cursor.close()
184184
self.database.commit()

0 commit comments

Comments
 (0)