Skip to content

Detect another form of mysql computed columns - #30

Merged
rhuijben merged 2 commits into
mainfrom
fix/mysql-on-update-computed
Feb 20, 2026
Merged

Detect another form of mysql computed columns#30
rhuijben merged 2 commits into
mainfrom
fix/mysql-on-update-computed

Conversation

@rhuijben

Copy link
Copy Markdown
Member

Attempt at fixing issue #28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the MySqlConnector provider’s schema inspection so MySQL columns with ON UPDATE ... behavior are detected as database-generated/read-only, supporting the Issue #28 use case of excluding these columns from write statements while still mapping them on reads.

Changes:

  • Extend computed/generated column detection in INFORMATION_SCHEMA.COLUMNS parsing to treat EXTRA containing ON UPDATE as computed.
  • Refactor the computed detection SQL expression to a multi-branch CASE for additional patterns.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/RepoDb.MySqlConnector/DbHelpers/MySqlConnectorDbHelper.cs Outdated
Comment thread src/RepoDb.MySqlConnector/DbHelpers/MySqlConnectorDbHelper.cs Outdated
Comment thread src/RepoDb.MySqlConnector/DbHelpers/MySqlConnectorDbHelper.cs Outdated

Copilot AI commented Feb 19, 2026

Copy link
Copy Markdown

@rhuijben I've opened a new pull request, #31, to work on those changes. Once the pull request is ready, I'll request review from you.

@rhuijben
rhuijben force-pushed the fix/mysql-on-update-computed branch from 500bca7 to 1cd0ca9 Compare February 19, 2026 09:12
@rhuijben
rhuijben merged commit fc8b199 into main Feb 20, 2026
5 checks passed
@rhuijben
rhuijben deleted the fix/mysql-on-update-computed branch February 20, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants