-
Notifications
You must be signed in to change notification settings - Fork 279
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
Method for reading query results during upgrade modification #18731
Method for reading query results during upgrade modification #18731
Conversation
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Reviewer Guide 🔍
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Code Suggestions ✨
|
User description
What type of PR is this?
Which issue(s) this PR fixes:
issue #https://github.com/matrixorigin/MO-Cloud/issues/4067
What this PR does / why we need it:
Method for reading query results during upgrade modification
Change from
UnsafeStringAt()
to callGetStringAt()
PR Type
Bug fix
Description
UnsafeGetStringAt
withGetStringAt
across multiple files for safer string retrieval.Changes walkthrough 📝
upgrade_strategy.go
Replace Unsafe String Retrieval with Safe Method
pkg/bootstrap/versions/upgrade_strategy.go
UnsafeGetStringAt
withGetStringAt
for safer stringretrieval.
CheckTableColumn
,CheckViewDefinition
, andCheckTableComment
functions.upgrade_tenant_task.go
Improve String Handling Safety in Tenant Tasks
pkg/bootstrap/versions/upgrade_tenant_task.go
UnsafeGetStringAt
toGetStringAt
for safer string handling.GetUpgradeTenantTasks
,GetTenantCreateVersionForUpdate
, andGetTenantVersion
.version.go
Enhance Version Retrieval Safety
pkg/bootstrap/versions/version.go
UnsafeGetStringAt
toGetStringAt
for safer operations.GetLatestVersion
,GetLatestUpgradeVersion
, andMustGetLatestReadyVersion
.