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

release-23.2: backupccl: replace UDT IDs within routine bodies and views #116841

Merged
merged 1 commit into from Jan 3, 2024

Commits on Dec 18, 2023

  1. backupccl: replace UDT IDs within routine bodies and views

    During a database RESTORE, it is necessary to replace descriptor IDs
    from the old database with those from the new. Previously, we forgot
    to do this rewrite for UDT IDs in routine bodies and views. This would
    prevent using a database RESTORE with a user-defined function, stored
    procedure, or view, that referenced a user-defined type. This patch
    adds the needed rewrite logic and expands existing tests.
    
    Fixes #116653
    
    Release note (bug fix): Fixed a bug that prevented database RESTORE when
    the database contained a view or routine that referenced a user-defined
    type in the body string. For views, this bug was introduced in v20.2, when
    UDTs were introduced. For routines, this bug was introduced in v22.2, when
    UDFs were introduced.
    DrewKimball committed Dec 18, 2023
    Configuration menu
    Copy the full SHA
    7164ca9 View commit details
    Browse the repository at this point in the history