-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
pgwire: rework DecodeOidDatum to DecodeDatum to parse OidFamily types #56298
Conversation
4c367f4
to
d9b38b9
Compare
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.
lgtm after fixing the comment. nice refactor ^_^
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @otan and @rafiss)
pkg/sql/pgwire/pgwirebase/encoding.go, line 300 at r2 (raw file):
If res is nil
nit: need to update comment since res is gone
@@ -203,77 +203,3 @@ func TestTupleCastVolatility(t *testing.T) { | |||
} | |||
} | |||
} | |||
|
|||
func TestCastStringToRegClassTableName(t *testing.T) { |
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.
oh just noticed, where did this test go?
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.
pkg/sql/sem/tree/datum_test.go
* Move ParseDOid and associated methods to new function. * Move datum_test.go to datum_integration_test.go, as it does not import datum.go tests. * Move some of datum_invariants_test.go out into datum_test.go. * Created new datum_test.go with pure unit tests. Release note: None
Reworked DecodeOidDatum to DecodeDatum to take in a type, which encodes additional useful information necessary for ENUMs and oid family types. Release note (bug fix): Fixed a bug where reg* types were not parsed properly over pgwire, COPY or prepared statements.
bors r=rafiss |
Build succeeded: |
Resolves #56193
pgwire: rework DecodeOidDatum to DecodeDatum to parse OidFamily types
Reworked DecodeOidDatum to DecodeDatum to take in a type, which
encodes additional useful information necessary for ENUMs and oid
family types.
Release note (bug fix): Fixed a bug where reg* types were not parsed
properly over pgwire, COPY or prepared statements.
tree: create ParseDOid method
datum.go tests.
Release note: None