Skip to content
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

Unsupported/experimental call to keys() of driver result in scalar context #33

Closed
johannessen opened this issue Jan 12, 2022 · 0 comments
Assignees
Labels

Comments

@johannessen
Copy link
Collaborator

REST::Neo4p::Query->_wrap_statement_result() makes a call to Neo4j::Driver::Result->keys() in scalar context.

$self->{NAME} = $result->keys;

Calling keys() in scalar context is experimental. At present, it returns the number of columns in the result rather than an array reference – in other words, it now behaves like a Perl list variable.

I’m eager to hear feedback on scalar context behaviour, for the driver as well as for Neo4j::Types.

To call keys() in a stable way, use list context.

@johannessen johannessen self-assigned this Jan 12, 2022
johannessen added a commit to johannessen/neo4j-driver-perl that referenced this issue Jan 22, 2022
Hopefully, this will reduce the risk of issues like majensen/rest-neo4p#33 in future.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant