diff --git a/src/connector_postgres_v2/base_command.py b/src/connector_postgres_v2/base_command.py index 1f05f1b..72395cf 100644 --- a/src/connector_postgres_v2/base_command.py +++ b/src/connector_postgres_v2/base_command.py @@ -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)