Skip to content

Fix isnumeric() usage in SNPRC demographics queries#963

Merged
labkey-bpatel merged 1 commit into
release26.3-SNAPSHOTfrom
26.3_fb_isnumeric_regression
Jul 10, 2026
Merged

Fix isnumeric() usage in SNPRC demographics queries#963
labkey-bpatel merged 1 commit into
release26.3-SNAPSHOTfrom
26.3_fb_isnumeric_regression

Conversation

@labkey-bpatel

@labkey-bpatel labkey-bpatel commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Rationale

The related PR migrated LabKey SQL isnumeric() from a SQL Server passthrough returning bit to a portable method returning JdbcType.BOOLEAN. On SQL Server the dialect now emits (ISNUMERIC(x) = 1), so the legacy isnumeric(x) = 1 pattern in these two saved queries is generated as ((ISNUMERIC(x) = 1) = 1) — invalid T-SQL, which fails the SNPRC dataset import trigger that resolves study.demographicsCurLocation.

Related Pull Requests

Changes

  • drop the = 1 from WHEN isnumeric(...) = 1 THEN ….

@labkey-bpatel labkey-bpatel merged commit eef2019 into release26.3-SNAPSHOT Jul 10, 2026
9 checks passed
@labkey-bpatel labkey-bpatel deleted the 26.3_fb_isnumeric_regression branch July 10, 2026 16:31
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