Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for Sybase SQL anywhere added. #14821

Merged
merged 2 commits into from
Dec 17, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions libs/community/langchain_community/utilities/sql_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,9 @@
connection.exec_driver_sql(
f"ALTER SESSION SET CURRENT_SCHEMA = {self._schema}"
)
elif self.dialect == "sqlany":
#if anybody using Sybase SQL anywhere database then it should not go to else condition. It should be same as mssql.

Check failure on line 409 in libs/community/langchain_community/utilities/sql_database.py

View workflow job for this annotation

GitHub Actions / ci (libs/community) / lint / build (3.8)

Ruff (E501)

langchain_community/utilities/sql_database.py:409:89: E501 Line too long (135 > 88)

Check failure on line 409 in libs/community/langchain_community/utilities/sql_database.py

View workflow job for this annotation

GitHub Actions / ci (libs/community) / lint / build (3.11)

Ruff (E501)

langchain_community/utilities/sql_database.py:409:89: E501 Line too long (135 > 88)
pass
else: # postgresql and other compatible dialects
connection.exec_driver_sql("SET search_path TO %s", (self._schema,))
cursor = connection.execute(text(command))
Expand Down
Loading