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

Bug: TIMEOUT not respected inside RETURN statement #4039

Open
2 tasks done
ioannist opened this issue May 14, 2024 · 0 comments
Open
2 tasks done

Bug: TIMEOUT not respected inside RETURN statement #4039

ioannist opened this issue May 14, 2024 · 0 comments
Labels
bug Something isn't working triage This issue is new

Comments

@ioannist
Copy link

ioannist commented May 14, 2024

Describe the bug

REMOVE TABLE wallet;
REMOVE TABLE person;

UPDATE wallet:1 CONTENT {
    day: 1,
};

SELECT * FROM wallet WHERE day > 0 TIMEOUT 0s; // OK, times out as expected
RETURN array::flatten(SELECT * FROM wallet WHERE day > 0 TIMEOUT 0s); // Does NOT time out!
//RETURN array::flatten(SELECT * FROM wallet WHERE day > 0) TIMEOUT 0s; // invalid syntax

Steps to reproduce

Execute code above.

Expected behaviour

The timeout should be respected when placed inside the RETURN statement. Alternatively, the syntax should allow a TIMEOUT clause for RETURN.

SurrealDB version

v1.4.2

Contact Details

No response

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ioannist ioannist added bug Something isn't working triage This issue is new labels May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage This issue is new
Projects
None yet
Development

No branches or pull requests

1 participant