Skip to content

Commit

Permalink
Merge pull request #16 from bdeboe/main
Browse files Browse the repository at this point in the history
  • Loading branch information
daimor authored May 8, 2024
2 parents 0e10eb5 + a15a2f1 commit 90592de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sqlalchemy_iris/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,8 @@ def on_connect(conn):
)
else:
try:
conn.execute(text("SELECT TO_VECTOR('1,2,3', INT, 3)"))
with conn.cursor() as cursor:
cursor.execute(text("SELECT TO_VECTOR('1,2,3', INT, 3)"))
self.supports_vectors = True
except: # noqa
self.supports_vectors = False
Expand Down

0 comments on commit 90592de

Please sign in to comment.