Replies: 1 comment
-
Apparently the query doesn't work in all SQL clients. It works in DBeaver but not in PGAdmin. The following revised query works with the QuerySqlTool:
So maybe this is less a bug than a quirk of DBeaver allowing me to run something I shouldn't be able to run, but I'll leave this here in case it's of interest to the devs. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
I'm trying to use langchain's QuerySqlTool to run an AI-generated SQL query that joins a table and a view.
When I run the same query directly against my database, I get results, but when I run the query in langchain it returns no results. Not an error, just no results.
The tool returns results for either the table or the view searched separately, but not for the join query.
System Info
platform mac
node v20.15.1
langchain 0.3.10
Beta Was this translation helpful? Give feedback.
All reactions