Skip to content

Commit

Permalink
ver 0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jul 18, 2017
1 parent 77b4e9d commit 07c122d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sanic_mysql/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async def _query(sqlstr):
async with _mysql.get() as conn:
async with conn.cursor() as cur:
await cur.execute(sqlstr)
value = await cur.fetchone()
value = await cur.fetchall()
return value

setattr(_mysql,'query',_query)
Expand Down

0 comments on commit 07c122d

Please sign in to comment.