Repository navigation
Version 2.10.0
Driver
Added
-
TypeDictionary.getBaseType(oid)returns the type under a domain, through every domain stacked on another, and
the type itself for anything else. -
PermissionDeniedException.dbDetailandhintcarry the server's detail and hint, and its log block prints them.
They were only inserverErrorMessage. -
An anonymous
ROW(...)of alternating keys and values reads into the data class asked for, each property from the
value under its name and each value keeping its own type, with nothing registered at any depth, where it raised
MappingException(NO_CONVERTER_FOUND).
Changed
-
A composite reads into the data class asked for with nothing registered, at any depth, where it raised
MappingException(NO_CONVERTER_FOUND)until the class went throughregisterAutoComposite. Writing the class
and reading the composite asAnystill need the registration. -
[BREAKING]
PermissionDeniedExceptionhas noschema,table,column,datatypeorroutine. PostgreSQL
fills none of the first four on a42501, androutinenamed a C function inside the server. -
[BREAKING] A statement the transaction does not allow where it arrived raises
TransactionStateException(MISPLACED_STATEMENT), which replacesNO_ACTIVE_TRANSACTIONandACTIVE_TRANSACTION.
A savepoint the transaction does not have (3B001) raises it too, where it wasUncategorizedDatabaseException,
and so dorollback(savepoint)andreleaseSavepoint(savepoint)on a savepoint that no longer exists. -
[BREAKING]
JsonElementand its subclasses are read only fromjson,jsonband a domain over either, where
any value decoding to aStringwas parsed as JSON. JSON in atextcolumn raises
MappingException(NO_CONVERTER_FOUND); cast it tojson/jsonbin the SQL, or read aString. -
[BREAKING] A
SELECT INTO STRICTthat found no row or several is
RoutineAssertionException(INCORRECT_RESULT_SIZE), which replacesNO_DATA_FOUNDandTOO_MANY_ROWS.
sqlStatesays which. -
[BREAKING] An
ERRORwith a class28SQLSTATE isUncategorizedDatabaseException, where it was
InitializationException(SERVER_REJECTED_CREDENTIALS). In an open session only a routine's ownRAISEsends
one; a refused login is stillInitializationException.
Fixed
-
A value inside an array or a composite whose type is a domain is converted as the type under it, as a column
already was. An enum,jsonbor a composite under a domain at that depth came back as
MappingException(CONVERSION_ERROR), aStringor a rawPgComposite. A converter'ssourceTypeis never a
PgType.Domain. -
A collection, a range or a registered composite declared through
withPgTypeas a domain over its type goes out
declared as the domain, where it failed withMappingException(CONVERSION_ERROR), and so does a composite
attribute over such a domain. APgContainerbuilt by hand goes out as the typewithPgTypenames, where it
ignored the name. -
An error or a notice that carries no non-localized severity, as the ones PgBouncer writes itself do, is read with
the severity it has, where it failed with aNullPointerException.