-
Notifications
You must be signed in to change notification settings - Fork 408
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
Parsing failure in extended query protocol #28
Comments
Hello, Judging from the reference link you attached, I am assuming you are using prepared statements in Postgres' JDBC driver. Is this correct? Unfortunately, the CREATE clause is not currently compatible with prepared statements, even if there are no params passed to the Cypher section of the query. We are looking to add this feature in future releases. |
Yes, but it just happened on statement too. OK. thank you for replying. :) |
I will see if I can reproduce the error and see if there might be an
oversight in the copyfuncs.c library.
john
…On Mon, Mar 1, 2021 at 9:30 PM Alex Kwak ***@***.***> wrote:
Yes, but it just happened on statement too.
because, Postgres JDBC's default Message Flow is extended mode.
not in Simple query mode like Node.js or Python.
OK. thank you for replying. :)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AALPO4BU6MO2HOQMO3L5BJLTBRZVXANCNFSM4YN6XKNA>
.
|
Josh is correct. I did not find anything that was an oversight.
john
…On Tue, Mar 2, 2021 at 9:27 AM John Gemignani ***@***.***> wrote:
I will see if I can reproduce the error and see if there might be an
oversight in the copyfuncs.c library.
john
On Mon, Mar 1, 2021 at 9:30 PM Alex Kwak ***@***.***> wrote:
> Yes, but it just happened on statement too.
> because, Postgres JDBC's default Message Flow is extended mode.
> not in Simple query mode like Node.js or Python.
>
> OK. thank you for replying. :)
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#28 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AALPO4BU6MO2HOQMO3L5BJLTBRZVXANCNFSM4YN6XKNA>
> .
>
|
Having the same problem folks. Workaround : I'm thinking about writing a wrapper in Plpython that runs query inside a bash terminal. |
Hi Remi, This issue is about creating vertices and edges. Is that the issue you are having or can you not create a graph at all in DBeaver? |
Hey @JoshInnis , thanks for answering :-)
The previous queries worked fine (create extension, set search path, create graph object, ...) |
We are working on a fix for this right now. I was able to recreate the issue with DBeaver and will test to verify the fix works there as well. |
Wow you work fast folks ! |
Hi @emotionbug the JDBC driver is now compatible with Prepared Statements. @Remi-C, we also tested on DBeaver and the patch should make that compatible to. Btw, glad to hear you enjoyed the presentation. |
Thanks @JoshInnis ! |
Currently this patch is only in master. |
I tested it then, this issue is solved. Thanks @JoshInnis and, @jrgemignani. |
code changes done to reflect this change are: * Modify the SQL function - _agtype_build_edge to include start and end vertex label ids and names in edge object * Modify executor, age_vle and edge typecasting to pass label id and name when constructing the edge object or retrieve these values while unpacking an edge * Update MATCH to work without using _extract_label_id (removed this function) Update the regression tests
Hello.
i trying to use AGE with JDBC.
and, i faced failure when Message Flow is extended query mode with CREATE clause.
has any solution with this issue or guide?
cheers.
failure query
error message
environment
Docker : sorrell/agensgraph-extension-alpine
Cheers.
reference link : https://www.postgresql.org/docs/12/protocol-flow.html#PROTOCOL-FLOW-EXT-QUERY
The text was updated successfully, but these errors were encountered: