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

Row is empty? #61

Open
hUwUtao opened this issue Feb 26, 2023 · 0 comments
Open

Row is empty? #61

hUwUtao opened this issue Feb 26, 2023 · 0 comments

Comments

@hUwUtao
Copy link

hUwUtao commented Feb 26, 2023

This is a query from the server
image
It have 1 result, created is int

The code below, do the same exact query

    let mut result = provider
        .graph
        .execute(query("MATCH(p:Post) RETURN p"))
        .await
        .unwrap();
    
    let row = result.next().await.unwrap().unwrap();
    let t = row.get::<i64>("created");
    info!("{}", t.is_some());
    result.next().await.unwrap().unwrap(); //panic

output

false
thread 'actix-rt|system:0|arbiter:7' panicked at 'called `Option::unwrap()` on a `None` value', src/main.rs:64:34

observable behaviour: it did return 1 row, however, created is None
expected behaviour: t.is_some()==true

Enviroment: Arch Host, docker 23.0.1, image: neo4j:4.1
Cargo.toml

neo4rs = { git = "https://github.com/neo4j-labs/neo4rs" }

The same result happen up to neo4j:4.4.18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant