Skip to content

Fix MySQL get_columns schema scoping#12260

Merged
StpMax merged 1 commit into
mindsdb:releases/26.1.0from
ianu82:codex/fix-mysql-get-columns-schema-filter
Mar 19, 2026
Merged

Fix MySQL get_columns schema scoping#12260
StpMax merged 1 commit into
mindsdb:releases/26.1.0from
ianu82:codex/fix-mysql-get-columns-schema-filter

Conversation

@ianu82

@ianu82 ianu82 commented Feb 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add table_schema = DATABASE() filter to MySQL get_columns query
  • update MySQL unit test expectations to include schema scoping

Why

Without schema filtering, get_columns can return metadata for same-named tables from other databases, causing inconsistent or incorrect column introspection.

Validation

  • python3 -m py_compile mindsdb/integrations/handlers/mysql_handler/mysql_handler.py tests/unit/handlers/test_mysql.py

@github-actions

github-actions Bot commented Feb 27, 2026

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@ianu82

ianu82 commented Feb 27, 2026

Copy link
Copy Markdown
Contributor Author

recheck

@StpMax StpMax changed the base branch from main to releases/26.1.0 March 19, 2026 12:18
@StpMax

StpMax commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

there is issue in tests, i'll fix it after merge

@StpMax StpMax merged commit 2a76277 into mindsdb:releases/26.1.0 Mar 19, 2026
24 of 33 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants