Repository navigation
v1.0.2
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
FROMsubquery no longer sees sibling derived tables. A column name shared with a preceding derived table used to match twice and become unresolved, which made aUNIONbranch fail withSET_CHAR_WIDTH. NVL(CHAR column, literal)in aUNIONbranch is accepted. Oracle types it asVARCHAR2with 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 afterAS, for example in DDL, is rejected withCHAR_LENGTH_SEMANTICSinstead of being treated as bytes.- Statements that previously failed with
SET_CHAR_WIDTHfor 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
orafit-jdbc-1.0.2.jar— JDBC driver and offline analyzer. pgJDBC is not bundled; provide it in your application.orafit-jdbc-1.0.2-runtime.tar.gz— SQL runtime:native/for self-managed PostgreSQL,plain/for managed services.SHA256SUMS— SHA-256 checksums for the two files above.
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