Skip to content

Conversation

@sam-cw
Copy link
Contributor

@sam-cw sam-cw commented Jan 22, 2026

Previously we relied on lookup_cast_type_from_column in the optimized postgres persistor, but that method has been deprecated without replacement.

Since we used that to get the logical value from the database we can instead ask the class for the active support type for the column in question, and then ask it to serialize the value - as I understand it this leads to an equivalent value as the prior approach which can then be type cast as before.

Previously we relied on lookup_cast_type_from_column in the optimized postgres persistor, but that method has been deprecated without replacement.

Since we used that to get the logical value from the database we can instead ask the class for the active support type for the column in question, and then ask it to serialize the value - as I understand it this leads to an equivalent value as the prior approach which can then be type cast as before.
@sam-cw sam-cw force-pushed the improvement/support-ar-8.1 branch from 27a7d14 to 5209a05 Compare January 22, 2026 13:41
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