Skip to content
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

sql: implement function OID reference #96442

Merged

Commits on Feb 14, 2023

  1. sql: implement function OID reference

    This commit implements `[FUNCTION xxxx]` OID references syntax
    of functions. With this change, functions can be called with
    the new OID numerical representation. For example
    `SELECT [FUNCTION 123]('helloworld')`. The intention of this
    syntax is only for internal serialization of references to UDFs.
    But it's general enough for builtin functions as well.
    
    A new implementation of the `ResolvableFunctionReference`
    interface, `OIDFunctionReference` is introduced for function
    resolution purpose for the new syntax.
    
    The `ResolveFunctionByOID` method is also refactored to return
    a qualified name.
    
    Fixes: cockroachdb#83231
    
    Release note: None
    chengxiong-ruan committed Feb 14, 2023
    Configuration menu
    Copy the full SHA
    1c7a82b View commit details
    Browse the repository at this point in the history