Skip to content

Fix crash on error detail page when using MariaDB #151

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

phihos
Copy link
Contributor

@phihos phihos commented May 4, 2025

Instead of using {:array, :string} for the :breadcrumbs field in ErrorTracker.Occurrence we use a new custom field type ErrorTracker.Types.StringArray.
It uses Jason to decode arrays when retrieving data from MySQL/MariaDB. Therefore it works very similarly to the :array type but without crashing on retrieval.
This fix does not make a schema migration necessary. An additional test module ErrorTracker.StoreFetchTest was implemented to avoid regreessions in the future.

Fixes #150.

@phihos phihos force-pushed the fix-bug-150 branch 9 times, most recently from bc070c2 to b6b143c Compare May 4, 2025 13:53
@phihos
Copy link
Contributor Author

phihos commented May 4, 2025

Ok, done refactoring now. Tests pass and code looks good to me at least.

@phihos phihos force-pushed the fix-bug-150 branch 3 times, most recently from a203fc9 to d2f3102 Compare May 18, 2025 13:11
@phihos phihos changed the title Fix crash on error detail page when using MySQL/MariaDB Fix crash on error detail page when using MariaDB May 18, 2025
Copy link
Contributor

@odarriba odarriba left a comment

Choose a reason for hiding this comment

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

Looks good to me! Once a new version of EctoSQL is released containing this fix, we can proceed merging this.

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.

Field Occurrence.breadcrumbs is broken for MariaDB
2 participants