Skip to content

router: preserve LONGTEXT and LONGBLOB column types in MRS - #744

Open
cuishuang wants to merge 1 commit into
mysql:trunkfrom
cuishuang:fix/mrs-longtext-longblob-metadata
Open

router: preserve LONGTEXT and LONGBLOB column types in MRS#744
cuishuang wants to merge 1 commit into
mysql:trunkfrom
cuishuang:fix/mrs-longtext-longblob-metadata

Conversation

@cuishuang

@cuishuang cuishuang commented Sep 6, 2026

Copy link
Copy Markdown

What does this change do?

Fixes the MySQL REST Service metadata mapping for MYSQL_TYPE_LONG_BLOB.

The helper now returns:

  • LONGBLOB for binary charset fields
  • LONGTEXT for non-binary charset fields

The existing TINY_BLOB, MEDIUM_BLOB and BLOB mappings are preserved.

Why is it needed?

MYSQL_TYPE_LONG_BLOB is used by the MySQL C API for both LONGBLOB and LONGTEXT.

The previous implementation returned BLOB unconditionally, causing LONGTEXT metadata to be exposed as BLOB and losing the original LONGBLOB type name.

How was it tested?

  • Added/updated MTR tests under mysql-test/
  • scripts/ci/mtr.sh passes locally
  • Ran the relevant full suite (name it): ______

Contributor checklist

  • Code is formatted (scripts/ci/format.sh)
  • Commits are focused with descriptive messages

AI assistance

  • I did not use AI assistance for this contribution
  • I used AI assistance for this contribution

If AI assistance was used, describe the tool(s) and extent of use:

AI assistance was used for test generation and review. The final code and test changes were manually checked, formatted, and syntax-validated.

Areas touched

router, mysql_rest_service, mysql-test/suite/router

@cuishuang
cuishuang requested a review from a team September 6, 2026 09:34
@oracle-contributor-agreement

Copy link
Copy Markdown

Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
The following contributors of this PR have not signed the OCA:

To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application.

When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated.

If you are an Oracle employee, please make sure that you are a member of the main Oracle GitHub organization, and your membership in this organization is public.

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. label Sep 6, 2026
@github-actions github-actions Bot added the Tests Changes touching test code or test data label Sep 6, 2026
@cuishuang

Copy link
Copy Markdown
Author

signed.

image

@cuishuang

Copy link
Copy Markdown
Author

recheck cla

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. Tests Changes touching test code or test data

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant