Skip to content

Commit

Permalink
Update example_pool.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jettify committed Oct 12, 2015
1 parent 7de7e49 commit 849a115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/example_pool.py
Expand Up @@ -9,7 +9,7 @@ async def test_pool():
dsn = 'Driver=SQLite;Database=sqlite.db'
pool = await aioodbc.create_pool(dsn=dsn, loop=loop)

async with (await pool) as conn:
async with pool.get as conn:
cur = await conn.cursor()
await cur.execute("SELECT 42;")
r = await cur.fetchall()
Expand Down

0 comments on commit 849a115

Please sign in to comment.