Title: BE_BETWEEN should report better on Type mismatch · Issue #1108 · utPLSQL/utPLSQL · GitHub
Open Graph Title: BE_BETWEEN should report better on Type mismatch · Issue #1108 · utPLSQL/utPLSQL
X Title: BE_BETWEEN should report better on Type mismatch · Issue #1108 · utPLSQL/utPLSQL
Description: 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 ...
Open Graph Description: 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...
X Description: 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...
Opengraph URL: https://github.com/utPLSQL/utPLSQL/issues/1108
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"BE_BETWEEN should report better on Type mismatch","articleBody":"**Describe the bug**\r\nDifferent 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` with `timestamp with timezone`.\r\n\r\nInternally, 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)\r\n\r\n**Provide version info**\r\nLatest utPLSQL version, all databases\r\n\r\n**Information about client software**\r\nIndependent from client\r\n\r\n**To Reproduce**\r\n```sql\r\nbegin\r\n -- Shows exactly *why* it fails\r\n ut.expect(to_timestamp(current_timestamp)).to_equal(current_timestamp);\r\n -- Gives only a generic \"cannot be used with\" - no indication what kind of datatype the matcher is initialized with\r\n ut.expect(to_timestamp(current_timestamp)).to_be_between(current_timestamp-interval '5' second, current_timestamp);\r\nend;\r\n/\r\n```\r\nMessage: `The matcher 'be between' cannot be used with data type (timestamp).`\r\n\r\n**Expected behavior**\r\nSimilar description as with the comparison-Matchers, like:\r\n`Actual (timestamp with timezone) cannot be compared to Expected (timestamp) using matcher 'be between'.`\r\n\r\n","author":{"url":"https://github.com/pesse","@type":"Person","name":"pesse"},"datePublished":"2020-11-12T16:52:16Z","url":"https://github.com/utPLSQL/utPLSQL/issues/1108"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3f2ef65a-2830-daee-23a0-6d686d5a3fbd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D9B0:12D34E:8642EB:B7188F:6B047E0A |
| html-safe-nonce | 542fd20e5561f2a25d1d69d66e02013482af07ef4cb6e4fc6b64eef332d85782 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUIwOjEyRDM0RTo4NjQyRUI6QjcxODhGOjZCMDQ3RTBBIiwidmlzaXRvcl9pZCI6IjIyMzg3OTMxMDQwMjUyMjI2NjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6fd7214514242b8e254ee627ef0b390b107083f1f873f7a71a47de8f6376ce9c |
| hovercard-subject-tag | issue:741761064 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/utPLSQL/utPLSQL/1108/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9dddbec1476a48cc65fe02db9184532e2d4e7977f0a93374bd4df9fb60e8c964/utPLSQL/utPLSQL/issues/1108 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9dddbec1476a48cc65fe02db9184532e2d4e7977f0a93374bd4df9fb60e8c964/utPLSQL/utPLSQL/issues/1108 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pesse |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0366ddfb372682a32e92a5d86155cb08fa83e5bbe79953a968789f2f7e24c511 |
| turbo-cache-control | no-preview |
| go-import | github.com/utPLSQL/utPLSQL git https://github.com/utPLSQL/utPLSQL.git |
| octolytics-dimension-user_id | 15661281 |
| octolytics-dimension-user_login | utPLSQL |
| octolytics-dimension-repository_id | 50728220 |
| octolytics-dimension-repository_nwo | utPLSQL/utPLSQL |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 50728220 |
| octolytics-dimension-repository_network_root_nwo | utPLSQL/utPLSQL |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ed3f2e01f6b7672780c586c8af0e72726374d7b6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width