Row is empty?
hUwUtao opened this issue · comments
This is a query from the server
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