Skip to content

Version 2.5.0

Choose a tag to compare

@CaesarAugustus27 CaesarAugustus27 released this 11 Oct 18:56
· 188 commits to master since this release

Driver

Added

  • Several servers in one URL, chosen among the way libpq does - jdbc:octavius://db1:5432,db2,db3:5433/curia,
    or the same list in serverName or a host parameter - with target_session_attrs and
    load_balance_hosts=random.

  • The servers of one list share one type catalog, and a server of another cluster is passed over with a warn.

Changed

  • Every address a host name resolves to is tried, not only the first.

  • An IPv6 address without a port reads as an address in a URL, unbracketed - jdbc:octavius://::1/curia - not
    as the host : on port 1.

  • [BREAKING] One composite or enum type name for two classes is refused, and so is one class under two names, with
    InvalidOperationException(INVALID_ARGUMENT) - and an enum registered again with other conventions. The same
    registration again changes nothing.

  • An enum registered with a schema is read as Any ahead of one registered without, as a composite already was.

  • A transaction's BEGIN goes out with its first statement in one write, terms included: a required { }
    around one statement costs two round trips instead of three.

Fixed

  • A cancel request goes to the address its connection reached, not to its host name resolved again.

  • A port in the URL's address that is not a whole number is refused instead of being ignored.

  • reloadTypes() re-reads the catalog its session reads after GlobalCatalogStore.removeCatalog, not the one
    that took the dropped one's place.

Client

Added

  • InsertQuery.overriding(OverridingValue.SYSTEM) and USER, rendering OVERRIDING … VALUE.

  • SelectQuery.window(definitions), rendering a WINDOW clause.

  • onConflict { onColumns(…, where = predicate) }, rendering a partial unique index's predicate.

Changed

  • [BREAKING] SelectQuery.forUpdate(of, mode) and LockWaitMode are gone, replaced by locking(clause), which
    takes the locking clause as SQL.