Skip to content

Commit bebad38

Browse files
authored
Actually return value in dbapi method (#95)
The dbapi method should return the value that import_dbapi returns. The original error from #91 and #92. Fixes: #94
1 parent fe743e6 commit bebad38

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
long_description = f.read()
3030

3131
setup(name='sqlalchemy_drill',
32-
version='1.1.7',
32+
version='1.1.8',
3333
description="Apache Drill for SQLAlchemy",
3434
long_description=long_description,
3535
long_description_content_type="text/markdown",
@@ -64,7 +64,7 @@
6464
license='MIT',
6565
url='https://github.com/JohnOmernik/sqlalchemy-drill',
6666
download_url='https://github.com/JohnOmernik/sqlalchemy-drill/archive/'
67-
'1.1.6.tar.gz',
67+
'1.1.8.tar.gz',
6868
packages=find_packages(),
6969
include_package_data=True,
7070
tests_require=['nose >= 0.11'],

sqlalchemy_drill/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
2020
# DEALINGS IN THE SOFTWARE.
2121

22-
__version__ = '1.1.7'
22+
__version__ = '1.1.8'
2323
from sqlalchemy.dialects import registry
2424

2525
registry.register("drill", "sqlalchemy_drill.sadrill", "DrillDialect_sadrill")

sqlalchemy_drill/sadrill.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def import_dbapi(cls):
7171
@classmethod
7272
def dbapi(cls):
7373
"""Deprecated in SQLAlchemy, retained for backwards compatibility."""
74-
DrillDialect_sadrill.import_dbapi()
74+
return DrillDialect_sadrill.import_dbapi()
7575

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

0 commit comments

Comments
 (0)