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
BE_BETWEEN should report better on Type mismatch #1108
Comments
I would like to implement this myself |
Hi @pesse, you still want to look at that one or you of for me to pick it up ? |
Haha, please pick it up. Once I find time and energy to get into the project again, I have loads of stuff to do with cli and java-api |
So I'm not entirely sure that this is a valid message. |
Describe the bug
Different to all the comparison matchers, BE_BETWEEN does not give away details of a type mismatch in its error message. It would be very helpful to have these details, for example when accidentially comparing
timestamp
withtimestamp with timezone
.Internally, BE_BETWEEN should probably also fail on mismatch of upper and lower bound (this might not happen at the moment, but I would like to have a check in the Matcher itself to make it more error-proof)
Provide version info
Latest utPLSQL version, all databases
Information about client software
Independent from client
To Reproduce
Message:
The matcher 'be between' cannot be used with data type (timestamp).
Expected behavior
Similar description as with the comparison-Matchers, like:
Actual (timestamp with timezone) cannot be compared to Expected (timestamp) using matcher 'be between'.
The text was updated successfully, but these errors were encountered: