The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
community[patch]: support for Sybase SQL anywhere added. (#14821)
sujeetf1d3f29bc48b
diff --git a/libs/community/langchain_community/utilities/sql_database.py b/libs/community/langchain_community/utilities/sql_database.pyindex 969d682a54..d573c8c9d9 100644--- a/libs/community/langchain_community/utilities/sql_database.py+++ b/libs/community/langchain_community/utilities/sql_database.py@@ -405,6 +405,10 @@ class SQLDatabase: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.+ passelse: # postgresql and other compatible dialectsconnection.exec_driver_sql("SET search_path TO %s", (self._schema,))cursor = connection.execute(text(command))