Postgres queries failing on quoted entities #2590
Replies: 1 comment
-
|
the issue is special characters in entity names arent being properly escaped before building the sql query. you have a few options:
the root cause is likely in the query building logic. if you can share which file or function builds the postgres queries, i can suggest a more specific fix. you might also want to open an issue on the repo if this isnt already tracked - its a security concern too since unescaped user input in sql queries can lead to injection. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
There is a bug when using LightRag with Postgres. If there are entities between quotes, the query fails. Example, if you have a node Newspaper "Weekend" and you query with the word newspaper the query fails. If you remove the quotes from Newspaper "Weekend" in the graph edit mode, the query works. Is there a way to escape the quotes in query mode?
Beta Was this translation helpful? Give feedback.
All reactions