Skip to content

Fix findVersions() unbound bind parameters on sql2011 history platforms#3837

Merged
rbygrave merged 1 commit into
masterfrom
feature/history-findVersions
Jul 7, 2026
Merged

Fix findVersions() unbound bind parameters on sql2011 history platforms#3837
rbygrave merged 1 commit into
masterfrom
feature/history-findVersions

Conversation

@rbygrave

@rbygrave rbygrave commented Jul 7, 2026

Copy link
Copy Markdown
Member

Fix for regression introduced in 18.2.0

On standards-based platforms (MariaDB, SQL Server, Oracle, DB2, HANA) the root table always generates a 'for system_time between ? and ?' clause for TemporalMode.VERSIONS, but bind values were only supplied for findVersionsBetween(), leaving findVersions() with 2 unbound placeholders and shifted bind positions ("Parameter at position N is not set").

Match the bind guard to the SQL generation condition and default start/end to epoch/now when not explicit.

On standards-based platforms (MariaDB, SQL Server, Oracle, DB2, HANA) the root table always generates a 'for system_time between ? and ?' clause for TemporalMode.VERSIONS, but bind values were only supplied  for findVersionsBetween(), leaving findVersions() with 2 unbound placeholders and shifted bind positions ("Parameter at position N is not set").

 Match the bind guard to the SQL generation condition and default start/end to epoch/now when not explicit.
@rbygrave rbygrave self-assigned this Jul 7, 2026
@rbygrave rbygrave added this to the 18.3.0 milestone Jul 7, 2026
@rbygrave rbygrave merged commit bb46c88 into master Jul 7, 2026
2 checks passed
@rbygrave rbygrave deleted the feature/history-findVersions branch July 7, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants