Skip to content

Commit

Permalink
Remove redundant function
Browse files Browse the repository at this point in the history
  • Loading branch information
jbirddog committed Jan 25, 2024
1 parent 99e4957 commit cb19b00
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/connector_postgres_v2/base_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,10 @@ def handler(conn: Any, cursor: Any) -> None:
return self._execute(sql, conn_str, handler)

def fetchall(self, sql: str, conn_str: str, values: list) -> ConnectorProxyResponseDict:
def prep_results(results: list) -> list:
return [list(result) for result in results]
def handler(conn: Any, cursor: Any) -> list:
cursor.execute(sql, values)
conn.commit()
return prep_results(cursor.fetchall())
return cursor.fetchall()

return self._execute(sql, conn_str, handler)

Expand Down

0 comments on commit cb19b00

Please sign in to comment.