diff --git a/rasgoql/CHANGELOG.md b/rasgoql/CHANGELOG.md index e79ca65..a68de57 100644 --- a/rasgoql/CHANGELOG.md +++ b/rasgoql/CHANGELOG.md @@ -114,6 +114,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Fixed a bug in the `get_schema` method of SQLAlchemy DW classes where users were being asked to enter an `overwrite` param they cannot access +## [1.6.2] - 2022-06-27 +### Fixed +- Fixed a postgres bug [1.0.0]: https://pypi.org/project/rasgoql/1.0.0/ [1.0.1]: https://pypi.org/project/rasgoql/1.0.1/ @@ -133,3 +136,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [1.5.6]: https://pypi.org/project/rasgoql/1.5.6/ [1.6.0]: https://pypi.org/project/rasgoql/1.6.0/ [1.6.1]: https://pypi.org/project/rasgoql/1.6.1/ +[1.6.2]: https://pypi.org/project/rasgoql/1.6.2/ diff --git a/rasgoql/rasgoql/data/sqlalchemy.py b/rasgoql/rasgoql/data/sqlalchemy.py index 5c79089..30a7d6f 100644 --- a/rasgoql/rasgoql/data/sqlalchemy.py +++ b/rasgoql/rasgoql/data/sqlalchemy.py @@ -248,7 +248,7 @@ def get_schema( if self._is_select_statement(fqtn_or_sql): self.create(fqtn_or_sql, "temp_schema", table_type="view", overwrite=True) query_response = self.execute_query( - query_sql.format(database=self.default_database, schema=self.default_schema, table="temp_schema"), + query_sql.format(database=self.database, schema=self.schema, table="temp_schema"), response="dict", ) self.execute_query( diff --git a/rasgoql/rasgoql/version.py b/rasgoql/rasgoql/version.py index 52525e3..4437d99 100644 --- a/rasgoql/rasgoql/version.py +++ b/rasgoql/rasgoql/version.py @@ -1,4 +1,4 @@ """ Package version for pypi """ -__version__ = '1.6.1' +__version__ = '1.6.2'