Skip to content
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

Improve resilience of MultiPoco queries to database schema changes #618

Merged

Conversation

TomTondeur
Copy link
Contributor

@TomTondeur TomTondeur commented Aug 11, 2021

Partly addresses the problem raised in #617

This will ensure cached poco factories are only used if the number of columns returned by the query has not been changed. This is not foolproof, as columns may have been added to one table and removed from another, but it seems like a worthwhile improvement.

NB: I only have SQLite on my local machine, so would appreciate it if someone could fix the test to work with other databases if necessary.

@pleb pleb merged commit 6004bc3 into CollaboratingPlatypus:development Aug 13, 2021
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.

2 participants