age_graph
_wrap_query()
method does not consider the combing queries like sql statements with operator like UNION
, EXCEPT
#29429
Labels
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
Checked other resources
Example Code
just calling
graph.query(cypher_query, params=params)
with a cypher query which is a combined query contains UNIONError Message and Stack Trace (if applicable)
Description
In the code
age_graph.py
, there is a method_wrap_query()
which converts a cypher query to anage compatible query. It will find the return key word, and turns all the fields after the return key word as the return fields.
But if the query is a combining query, which contains operator like
UNION
EXCEPT
, it could contain multiple return statements. The following code will incorrectly treat all the statements after the firstreturn
key word as the return fields.System Info
The text was updated successfully, but these errors were encountered: