Skip to content

Commit

Permalink
pre-commit lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Solomon Choe committed Aug 10, 2023
1 parent fa7f0ef commit aa2356e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion c/driver/postgresql/statement.cc
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ void TupleReader::Release() {
}

is_finished_ = false;
row_id_= -1;
row_id_ = -1;
}

void TupleReader::ExportTo(struct ArrowArrayStream* stream) {
Expand Down
3 changes: 2 additions & 1 deletion python/adbc_driver_postgresql/tests/test_dbapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def test_crash(postgres: dbapi.Connection) -> None:
cur.execute("SELECT 1")
assert cur.fetchone() == (1,)


def test_reuse(postgres: dbapi.Connection) -> None:
with postgres.cursor() as cur:
cur.execute("DROP TABLE IF EXISTS test_batch_size")
Expand All @@ -104,4 +105,4 @@ def test_reuse(postgres: dbapi.Connection) -> None:
assert cur.fetchone() == (1,)

cur.execute("SELECT 2")
assert cur.fetchone() == (2,)
assert cur.fetchone() == (2,)

0 comments on commit aa2356e

Please sign in to comment.