Skip to content

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

Open
labkey-nicka wants to merge 2 commits intodevelopfrom
fb_compound_components
Open

PropertyColumn: do not cast float/decimal columns as varchar#7617
labkey-nicka wants to merge 2 commits intodevelopfrom
fb_compound_components

Conversation

@labkey-nicka
Copy link
Copy Markdown
Contributor

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

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
Copy link
Copy Markdown
Contributor

@labkey-matthewb labkey-matthewb left a comment

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
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