We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import kuzu conn = kuzu.Connection(kuzu.Database("/tmp/db")) conn.execute("CREATE NODE TABLE V(id STRING,PRIMARY KEY(id));") conn.execute("CREATE (v:V {id: 'foo'}) RETURN v;") conn.execute("MATCH (v:V {id: $1}) RETURN v;", {"1": "foo"}) # works conn.execute("MATCH (v:V {id: $1}) RETURN v;", {"1": None}) # below error
Traceback (most recent call last): File "/tmp/test1/main.py", line 14, in conn.execute("MATCH (v:V {id: $1}) RETURN v;", {"1": None}) File "/tmp/test1/.venv/lib64/python3.12/site-packages/kuzu/connection.py", line 82, in execute _query_result = self._connection.execute( ^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: Unknown parameter type <class 'NoneType'>
In addition to UUID: please allow None in prepared statements of Python API mapping. This is useful for:
None
Maybe
NULL
MATCH (v:V {id: NULL}) RETURN v;
The text was updated successfully, but these errors were encountered:
#3098 should fix this.
Sorry, something went wrong.
No branches or pull requests
In addition to UUID: please allow
None
in prepared statements of Python API mapping. This is useful for:Maybe
) values to prepared statementNone
/NULL
values are sometimes needed within Cypher statement logicMATCH (v:V {id: NULL}) RETURN v;
works as wellThe text was updated successfully, but these errors were encountered: