Skip to content

PropertyColumn: do not cast float/decimal columns as varchar - #7617

Merged
labkey-nicka merged 2 commits into
developfrom
fb_compound_components
Apr 25, 2026
Merged

PropertyColumn: do not cast float/decimal columns as varchar#7617
labkey-nicka merged 2 commits into
developfrom
fb_compound_components

Conversation

@labkey-nicka

@labkey-nicka labkey-nicka commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

Rationale

We know the underlying type of our PropertyColumn. When the type is a float/decimal we currently cast to varchar when we seemingly should not / do not need to. This breaks interactions like filtering from a grid.

Related Pull Requests

Changes

  • Stop casting float/decimal as varchar
  • Regression test added in associated PR

@labkey-nicka labkey-nicka self-assigned this Apr 22, 2026

@labkey-matthewb labkey-matthewb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Consider using a switch to get better guidance from the compiler?

@labkey-nicka
labkey-nicka force-pushed the fb_compound_components branch from e6afc74 to a55aac6 Compare April 22, 2026 16:30
@labkey-nicka

Copy link
Copy Markdown
Contributor Author

Consider using a switch to get better guidance from the compiler?

Good suggestion. Done.

@labkey-nicka
labkey-nicka force-pushed the fb_compound_components branch 2 times, most recently from 88f71f6 to 68f9392 Compare April 23, 2026 19:36
@labkey-nicka
labkey-nicka force-pushed the fb_compound_components branch from 68f9392 to c0a51e9 Compare April 25, 2026 20:20
@labkey-nicka
labkey-nicka merged commit 47a8d2d into develop Apr 25, 2026
10 of 13 checks passed
@labkey-nicka
labkey-nicka deleted the fb_compound_components branch April 25, 2026 22:54
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