Skip to content

Commit

Permalink
fix missing passing of pos argument (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
devkral authored Aug 19, 2024
1 parent d11e2e6 commit c02244d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion databasez/core/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ async def fetch_one(
pos: int = 0,
) -> typing.Optional[interfaces.Record]:
async with self.connection() as connection:
return await connection.fetch_one(query, values)
return await connection.fetch_one(query, values, pos=pos)

async def fetch_val(
self,
Expand Down
1 change: 1 addition & 0 deletions docs/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

- `disconnect_hook` was called too early.
- `connect_hook` was called too late.
- `pos` not passed through in fetch_one.

## 0.9.4

Expand Down

0 comments on commit c02244d

Please sign in to comment.