You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@age.apache.org by GitBox <gi...@apache.org> on 2021/05/28 08:43:19 UTC

[GitHub] [incubator-age] seo-kw removed a comment on issue #76: Preparestatement supporting issues(?)

seo-kw removed a comment on issue #76:
URL: https://github.com/apache/incubator-age/issues/76#issuecomment-850256389


   > 
   > 
   > I haven't used JDBC myself, but if it is similar to asyncpg, it should work like this:
   > 
   > ```
   > PreparedStatement pstmt  = connectionHelper.createConnection().prepareStatement(
   > 	"select * from cypher('a', $$ "+
   > 	"match (a) where id(a) = $id return properties(a)" +
   > 	"$$, ?) as (a agtype););"
   > pstmt.setString(1, '{\"id\": 281474976710667}');
   > ```
   > 
   > Additional remark: `id(a)` (automatically generated primary key for the vertex a) is not the same as `a.id` (property id of the vertex a).
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org