-
-
Notifications
You must be signed in to change notification settings - Fork 94
Closed
Copy link
Milestone
Description
Hello,
Took some time but I'm trying to get back into the PSYCOPG driver.
I have this error :
with self.connection.cursor(row_factory=psycopg.rows.dict_row) as cursor:
prefix = "" if language == "sql" else f"{{{language}}}"
cursor.execute(query=prefix+command, params=params)Where query is :
{cypher}MATCH (n:CHUNK) WHERE ID(n) IN %(ids)s RETURN n.text as text, ID(n) as id\n'
And params are : a list of 50 rids : ['#1:65543', '#1:229405', '#1:155652', '#1:32773', '#1:192584', '#1:225294', '#1:149511', '#1:161805', '#1:65547', '#1:180226', '#1:129039', '#1:301061', '#1:47116', '#1:51227', '#1:186371', '#1:65539', '#1:51226', '#1:190491', '#1:145412', ...]
Got a java error :
class java.lang.String cannot be cast to class java.util.Collection (java.lang.String and java.util.Collection are in module java.base of loader 'bootstrap')
🤓
Reactions are currently unavailable