-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add better regclass and oid cast support (#2795)
partially addresses #2746
- Loading branch information
1 parent
9ffc15f
commit f4c541b
Showing
5 changed files
with
64 additions
and
13 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
statement error | ||
select 'my_table'::oid; | ||
|
||
statement ok | ||
create external table my_table from debug options(table_type = 'never_ending'); | ||
|
||
statement ok | ||
select 'my_table'::oid; | ||
|
||
# make sure upper case works | ||
statement ok | ||
select 'my_table'::OID; | ||
|
||
statement ok | ||
select cast('my_table' as oid); | ||
|
||
statement ok | ||
select cast('my_table' as OID); | ||
|
||
|
||
# We don't support expressions other than strings right now. | ||
statement error Casting expressions to oid unsupported | ||
select cast(1 as oid); | ||
|
||
statement error Casting expressions to oid unsupported | ||
select cast(1 + 1 as oid); | ||
|
||
statement error Relation 'not_my_table' does not exist | ||
select cast('not_my_table' as oid); |
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