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

statement error test should fail when expected error did not occur #178

Closed
xiangjinwu opened this issue May 26, 2023 · 2 comments
Closed

Comments

@xiangjinwu
Copy link

xiangjinwu commented May 26, 2023

Reproduce:
With PostgreSQL running on port 5432,

sqllogictest -p 5432 -d test -u $USER <(echo $'statement error\nselect 1;')

Expected:
[FAILED]: query is expected to error but did not

Actual:
[OK]

Practical usage:

statement error
select power(-1, 0.5);
@xxchan
Copy link
Member

xxchan commented May 26, 2023

I can reproduce. BTW, query error is correct.

image

@xiangjinwu
Copy link
Author

Thank you. Seems query error is an undocumented extension?

JackTan25 added a commit to JackTan25/sqllogictest-rs that referenced this issue Jul 24, 2023
Signed-off-by: JackTan25 <jacktby@gmail.com>
@xxchan xxchan closed this as completed Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants