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 9129cab commit 1530b5aCopy full SHA for 1530b5a
frameworks/Python/blacksheep/app-socketify.py
@@ -111,9 +111,8 @@ async def db_updates_test(request):
111
), key=lambda x: x[1])
112
worlds = [{"id": row_id, "randomNumber": number} for row_id, number in updates]
113
async with db_pool.acquire() as connection:
114
- statement = await connection.prepare(READ_ROW_SQL)
115
for row_id, _ in updates:
116
- await statement.fetch_val([row_id])
+ await connection.fetch_val(READ_ROW_SQL, [row_id])
117
# await db_conn.executemany(WRITE_ROW_SQL, updates)
118
await connection.execute_many(WRITE_ROW_SQL, updates)
119
raise Exception("connect error")
0 commit comments