Skip to content

v1.0.2

Choose a tag to compare

@github-actions github-actions released this 11 Nov 17:23
· 5 commits to main since this release
84a7232

Fixes three cases where CHAR data in UNION branches or CAST was wrongly rejected or padded wrongly.

All three fixes concern fixed-width CHAR handling. There are no SQL runtime changes.

Changes

Fixed

  • A FROM subquery no longer sees sibling derived tables. A column name shared with a preceding derived table used to match twice and become unresolved, which made a UNION branch fail with SET_CHAR_WIDTH.
  • NVL(CHAR column, literal) in a UNION branch is accepted. Oracle types it as VARCHAR2 with the larger of its two argument widths; blank padding is kept on the first argument. An unprovable width is still rejected.
  • CAST(x AS CHAR(n CHAR)) now uses character semantics (CAST('É' AS CHAR(2 CHAR)) returns 'É ' as in Oracle).

Changed

  • The documentation site is deployed only when docs/ changes.

Compatibility impact

  • CHAR(n CHAR) anywhere other than directly after AS, for example in DDL, is rejected with CHAR_LENGTH_SEMANTICS instead of being treated as bytes.
  • Statements that previously failed with SET_CHAR_WIDTH for the two cases above now translate.

Verification

516 differential tests against Oracle 18c XE 18.4.0.0.0 and 694 Maven tests, all passing.

Downloads

Also on Maven Central: io.github.ltslab:orafit-jdbc:1.0.2

Install / Upgrade

Replace the driver JAR. No runtime reinstall is needed.

Full Changelog: v1.0.1...v1.0.2