PgResultSetMetaData caches invalid database metadata #551
It's a regression in version REL9_3_1102 which was introduced with addition of
It uses static instance of java.util.Map to capture information whenever metadata was perviously queried or not and if it was then cached results are returned.
The issue is that in our case we are using Active Objects which are doing ddl/dml and relying on up to date metadata for schema migration.
I believe that Hibernate ORM framework also would be affected since it supports automatic schema migration.
Although cache is at class loader level, for 99% of applications it will be global cache since driver most likely will come from system class loader.
For simple fix, I suggest reducing caching to instance level to restore REL9_3_1101 behaviour.
The text was updated successfully, but these errors were encountered: