forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tree: disallow and test comparison operators for REFCURSOR
The `REFCURSOR` data type does not support comparisons apart from a few edge cases like `'foo'::REFCURSOR IS NULL`. Example: ``` postgres=# SELECT 'foo'::REFCURSOR = 'foo'::REFCURSOR; ERROR: operator does not exist: refcursor = refcursor ``` The previous commit that added the `RefCursorFamily` type family already effectively removed support for most comparisons; this commit also prevents the `IS / IS DISTINCT FROM` variants from being used on a `REFCURSOR` expression. Note that postgres supports a few cases with `NULL` as mentioned above. However, this case seems unimportant, so I leave it as a TODO for now. This commit also adds tests for various comparisons involving `REFCURSOR`. Informs cockroachdb#111560 Release note: None
- Loading branch information
1 parent
24a2382
commit b8bb90b
Showing
2 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters