Skip to content

Commit 90592de

Browse files
authored
Merge pull request #16 from bdeboe/main
2 parents 0e10eb5 + a15a2f1 commit 90592de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sqlalchemy_iris/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,8 @@ def on_connect(conn):
915915
)
916916
else:
917917
try:
918-
conn.execute(text("SELECT TO_VECTOR('1,2,3', INT, 3)"))
918+
with conn.cursor() as cursor:
919+
cursor.execute(text("SELECT TO_VECTOR('1,2,3', INT, 3)"))
919920
self.supports_vectors = True
920921
except: # noqa
921922
self.supports_vectors = False

0 commit comments

Comments
 (0)