Repository navigation
v1.0.1
JSqlParser is now a regular dependency instead of being shaded into the JAR, and CHAR widths in UNION branches are resolved from the database.
This release removes a class-path clash risk, widens set-operation support for physical CHAR(n) columns, and updates the pgJDBC version Orafit is tested against.
Changes
Changed
- JSqlParser is declared as
com.github.jsqlparser:jsqlparser:5.4instead of being shaded. The shaded copy was not relocated, so itsnet.sf.jsqlparserclasses could clash with another JSqlParser on the application class path. - The JAR no longer has a
Main-Class. Run the analyzer withjava -cp orafit-jdbc-1.0.1.jar:<jsqlparser-jar> io.github.orafit.tools.CompatibilityAnalyzer.
Fixed
UNION/UNION ALLbranches that project physicalCHAR(n)columns were rejected withSET_CHAR_WIDTH. Widths are now read from PostgreSQL column metadata and Oracle's set datatype rule is applied: equal widths stayCHAR(n); otherwise the result isVARCHAR2of the largest width, with blank padding and duplicate elimination matching Oracle, and JDBC metadata reports the width. Branches whose width cannot be proven are still rejected.
Dependencies
- Tested against pgJDBC 42.7.14, which fixes CVE-2026-107314 and CVE-2026-107315. pgJDBC is still not a dependency of Orafit; use 42.7.14 or later.
Compatibility impact
- Build tools now resolve JSqlParser transitively and may pick a different version than the tested 5.4. Keep the declared version.
- Scripts that ran
java -jar orafit-jdbc-<version>.jarfor the analyzer must switch tojava -cp. - Previously rejected
CHARset-operation statements may now translate.
Verification
513 differential tests between Oracle 18c XE 18.4.0.0.0 and embedded PostgreSQL 17.10 passing, including 12 new CHAR set-width cases.
Downloads
orafit-jdbc-1.0.1.jar— JDBC driver and offline analyzer. pgJDBC is not bundled; provide it in your application.orafit-jdbc-1.0.1-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.1
Install / Upgrade
Replace the driver JAR and make sure JSqlParser 5.4 is on the class path. The runtime SQL is unchanged since 1.0.0 and does not need reinstalling.
Full Changelog: v1.0.0...v1.0.1