Skip to content

Fix missing space before WHERE in SND PackageUserSchema.getFromSQLJoin#968

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

Fix missing space before WHERE in SND PackageUserSchema.getFromSQLJoin#968
labkey-bpatel merged 1 commit into
release26.3-SNAPSHOTfrom
26.3_fb_snd_event_query_fix

Conversation

@labkey-bpatel

Copy link
Copy Markdown
Contributor

Rationale

When a Packages user-schema query didn't reference any of the "event" columns (SubjectId, Date, QcState, SequenceNum), PackageTableInfo.getFromSQLJoin took the withEventJoin=false path and appended "WHERE eventdata.Container=…" immediately after the eventdata subquery alias produced by eventData.getFromSQL("eventdata"). With no separator between the alias and the keyword, the emitted SQL looked like …) eventdataWHERE eventdata.Container=…, which SQL Server rejected with Incorrect syntax near 'eventdata'.

Related Pull Requests

Changes

  • prepend a leading space to the WHERE clause

@labkey-bpatel
labkey-bpatel merged commit 930fbff into release26.3-SNAPSHOT Jul 20, 2026
11 checks passed
@labkey-bpatel
labkey-bpatel deleted the 26.3_fb_snd_event_query_fix branch July 20, 2026 16:40
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