Re: getTypeMap() returns null - bug?

From: Mark Rotteveel <mark(at)lawinegevaar(dot)nl>
To: pgsql-jdbc(at)lists(dot)postgresql(dot)org
Subject: Re: getTypeMap() returns null - bug?
Date: 2020-05-11 07:44:09
Message-ID: 173adf8d27618dd74a9b417b0d7e45a0@lawinegevaar.nl
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On 2020-05-11 08:20, rob stone wrote:
> Note this paragraph:- "Retrieves the Map object associated with this
> Connection object. Unless the application has added an entry, the type
> map returned will be empty." I.e., null.

No, empty does not mean null, it means returning an empty map (eg
Collections.emptyMap()) or an empty instance of a Map implementation).
If the PostgreSQL JDBC driver doesn't support type maps, then it should
throw a SQLFeatureNotSupportedException instead.

Mark

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2020-05-11 09:54:35 Re: getTypeMap() returns null - bug?
Previous Message David G. Johnston 2020-05-11 07:20:18 Re: getTypeMap() returns null - bug?