Skip to content

Fix typo in timestamptz precision error message#1306

Merged
mpilquist merged 1 commit into
typelevel:mainfrom
mokashang:fix/timestamptz-error-typo
May 13, 2026
Merged

Fix typo in timestamptz precision error message#1306
mpilquist merged 1 commit into
typelevel:mainfrom
mokashang:fix/timestamptz-error-typo

Conversation

@mokashang
Copy link
Copy Markdown

Fixes #1295.

The IllegalArgumentException thrown by timestamptz(precision) when given an out-of-range precision misspelled the type name as timestampz (missing the t before z). All other temporal codecs in the same file (time, timetz, timestamp, interval) use their correct names in the corresponding error messages, so this aligns timestamptz with that convention and with the actual codec function name.

One-character change to a non-asserted exception message in modules/core/shared/src/main/scala/codec/TemporalCodecs.scala. No tests reference this string.

The IllegalArgumentException raised for an out-of-range timestamptz
precision misspelled the type name as "timestampz" (missing the "t"
before "z"). All other temporal codecs in the same file (time, timetz,
timestamp, interval) use their correct names, so this aligns the
message with that convention and with the actual codec function name.

Fixes typelevel#1295
@mpilquist mpilquist merged commit c0fa0b0 into typelevel:main May 13, 2026
10 checks passed
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.

timestamptz precision error message has typo "timestampz" (missing "t")

3 participants