Repository navigation
Driver
Changed
-
[BREAKING] A SCRAM login refuses a server asking for more than
scramMaxIterationsiterations, a new property
defaulting to 100 000, as pgjdbc does since CVE-2026-42198. A role stored under a higherscram_iterationsneeds the
property raised. -
[BREAKING]
NetworkExceptionReasonkeepsCONNECTION_ERROR,CONNECTION_TIMEOUTandCONNECTION_CLOSED. A
connection the server ended or closed, or whose stream broke, raisesCONNECTION_ERRORwith how indetailson every
call, not only the first.CONNECTION_CLOSEDis left to a connection closed or aborted on the client,
abort(executor)included.CONNECTION_ABORTEDandCONNECTION_CLOSED_BY_PEERare gone. -
[BREAKING] Writing a registered data class as its composite fails with
MappingException(REQUIRED_ATTRIBUTE_MISSING)when the type has an attribute the class has no property for, where it
was sent asNULLand wiped the attribute. A class meant to writeNULLthere needs a nullable property. -
[BREAKING] Reading a data class reflectively fails with
MappingException(REQUIRED_ATTRIBUTE_MISSING)at a
nullable property with nothing to read it from, where it read asnull. A property that may be absent needs= null. -
[BREAKING] A
CancellationExceptionor anInterruptedExceptionfrom the block offorEachRow,forEachObject
orforEachFieldis rethrown as it came, where it arrived asMappingException(BLOCK_FAILED). -
[BREAKING] Setting
client_encodingto anything but UTF-8 closes the session with
NetworkException(CONNECTION_ERROR). -
[BREAKING] A
TypeExceptionraised while a value is converted or encoded arrives as itself, with itspath,
rather than inside aMappingExceptionor aCodecException. A value inside an array, a composite, aROW(...)or
a range whose type has no codec, or one declared throughwithPgTypeas a domain over such a type, raises
TypeException(MISSING_CODEC)naming it, as a column of it does. -
Reading a data class whose primary constructor is private fails with a
MappingException(CONVERSION_ERROR)that names
the class and points to a converter of its own, where the message came from kotlin-reflect. -
toDataMap()sends an empty list or set as an array of the element class its property declares, as anArrayalready
went, where it neededwithPgType.
Fixed
-
A private data class is read reflectively, where building one failed with
MappingException(CONVERSION_ERROR). -
A collection or an array sent as a type that is not an array fails with
TypeException(NOT_A_CONTAINER), where it was
TYPE_NOT_FOUND. -
The
@namescan andSqlScript.splitend a--comment at a lone\r, as PostgreSQL does, where they read on to
the next\n. -
A
timestamptzortimestampfrom 294247 to 294276 AD reads and writes as itself, where it read back around 290 000
BC and failed to write. -
A
networkTimeoutset whileisValid()or a listener loop runs is kept, where they put back the value they had
found. -
close()andabort()during another thread's exchange no longer fail it with anArrayIndexOutOfBoundsException. -
A login is refused with
InitializationException(PROTOCOL_VIOLATION)when the server sends anything but
authentication, an error or a protocol negotiation beforeAuthenticationOk, as libpq does. A server that went
straight toReadyForQuerygot pastchannelBinding=require. -
Before
AuthenticationOk, a message over 30 000 bytes is refused withInitializationException(PROTOCOL_VIOLATION)
before anything is allocated for it, as libpq bounds it. -
A message whose contents do not agree with its length word, or a
DataRowthat does not agree with its
RowDescriptionor has none, breaks the connection withNetworkException(CONNECTION_ERROR), or fails the login
beforeAuthenticationOk. -
loginTimeoutbounds the connect and the login together, as documented, where it bounded each read, so a server
sending a byte at a time held the thread for as long as it liked. -
A
noticeHandlerClassNameoroauthTokenProviderClassNamenaming a class of the wrong type is refused before the
class is initialized, the hole pgjdbc closed as CVE-2022-21724.
pg-model
Changed
- [BREAKING] The date and time serializers are named after the column they write:
LocalDateAsPgDateSerializer,
LocalDateTimeAsPgTimestampSerializer,InstantAsPgTimestamptzSerializerandLocalTimeAsPgTimeSerializer, where
they wereLocalDateWithInfinitySerializer,LocalDateTimeWithInfinitySerializer,InstantWithInfinitySerializer
andLocalTimeWithEndOfDaySerializer. Only code that names one changes.
Migrations
Fixed
lockTimeoutbounds only the wait for the migration lock, where the migrations ran under it too.