Skip to content

v1.0.1

Choose a tag to compare

@github-actions github-actions released this 10 Nov 01:15
· 12 commits to main since this release
8c06c0b

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.4 instead of being shaded. The shaded copy was not relocated, so its net.sf.jsqlparser classes could clash with another JSqlParser on the application class path.
  • The JAR no longer has a Main-Class. Run the analyzer with java -cp orafit-jdbc-1.0.1.jar:<jsqlparser-jar> io.github.orafit.tools.CompatibilityAnalyzer.

Fixed

  • UNION / UNION ALL branches that project physical CHAR(n) columns were rejected with SET_CHAR_WIDTH. Widths are now read from PostgreSQL column metadata and Oracle's set datatype rule is applied: equal widths stay CHAR(n); otherwise the result is VARCHAR2 of 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>.jar for the analyzer must switch to java -cp.
  • Previously rejected CHAR set-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

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