Skip to content

Commit

Permalink
Fix wrongly delegated import_dbapi method (#93)
Browse files Browse the repository at this point in the history
The import_dbapi method should be called on DrillDialect_sadrill
class not the compiler one.

Fixes: #92
  • Loading branch information
potiuk authored Feb 25, 2025
1 parent 32e4d83 commit fe743e6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
long_description = f.read()

setup(name='sqlalchemy_drill',
version='1.1.6',
version='1.1.7',
description="Apache Drill for SQLAlchemy",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down
2 changes: 1 addition & 1 deletion sqlalchemy_drill/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.

__version__ = '1.1.6'
__version__ = '1.1.7'
from sqlalchemy.dialects import registry

registry.register("drill", "sqlalchemy_drill.sadrill", "DrillDialect_sadrill")
Expand Down
2 changes: 1 addition & 1 deletion sqlalchemy_drill/sadrill.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def import_dbapi(cls):
@classmethod
def dbapi(cls):
"""Deprecated in SQLAlchemy, retained for backwards compatibility."""
DrillCompiler_sadrill.import_dbapi()
DrillDialect_sadrill.import_dbapi()

def create_connect_args(self, url, **kwargs):
url_port = url.port or 8047
Expand Down

0 comments on commit fe743e6

Please sign in to comment.