Prevent recursive queries inside futures

Closes #1513
This commit is contained in:
Tobie Morgan Hitchcock 2022-12-11 23:55:31 +00:00
parent ad004999a8
commit c3db35cbeb

View file

@ -83,8 +83,8 @@ impl SelectStatement {
opt.check(Level::No)?;
// Create a new iterator
let mut i = Iterator::new();
// Ensure futures are processed
let opt = &opt.futures(true);
// Ensure futures are stored
let opt = &opt.futures(false);
// Loop over the select targets
for w in self.what.0.iter() {
let v = w.compute(ctx, opt, txn, doc).await?;