-
Notifications
You must be signed in to change notification settings - Fork 41
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
chore: add better regclass and oid cast support #2795
Changes from all commits
bf619e2
0408803
237fe2f
ad8340f
bc14f8b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is there a point to supporting more ever/eventually? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. idk, most of this was copied from the |
||
statement error Casting expressions to oid unsupported | ||
select cast(1 as oid); | ||
|
||
statement error Casting expressions to oid unsupported | ||
Comment on lines
+23
to
+26
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should this error message be phrased as "only strings can be cast to OIDs" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This error message was copied from the |
||
select cast(1 + 1 as oid); | ||
|
||
statement error Relation 'not_my_table' does not exist | ||
select cast('not_my_table' as oid); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we put the error message here?