jrgemignani commented on issue #1990: URL: https://github.com/apache/age/issues/1990#issuecomment-2256583389
@ishaan812 `age_prepare_string` is meant to be called by a driver or something passing `cstrings`. ``` CREATE FUNCTION ag_catalog.age_prepare_cypher(cstring, cstring) RETURNS boolean LANGUAGE c STABLE PARALLEL SAFE AS 'MODULE_PATHNAME'; ``` ``` commit f49c322eee85e47e4cfe4a2b1cacdbe74c9f4496 Author: John Gemignani <jrgemign...@gmail.com> Date: Mon Nov 21 09:33:58 2022 -0800 Add the ability to pass parameters to the cypher function Added the ability to pass parameters to the cypher() function via a function called age_prepare_cypher(). This extra function is necessary because the cypher() function itself isn't actually executed - it is instead transformed and replaced. This means that it needs to have its input parameters resolved prior to that transform. However, parameters aren't resolved until the execution phase. So, another command to resolve them needs to run prior to the cypher() function call. This mainly impacts the drivers, which will need to be updated. Additionally, modified the golang driver as an example of this new usage. Added regression tests. ``` -- 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. To unsubscribe, e-mail: dev-unsubscr...@age.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org