Set read-only connection from a connect string parameter - Mailing list pgsql-jdbc

From Steven Schlansker
Subject Set read-only connection from a connect string parameter
Date
Msg-id B5663E9C-F1AB-4046-9A56-9A4B56C38DBD@likeness.com
Whole thread Raw
Responses Re: Set read-only connection from a connect string parameter  (Dave Cramer <pg@fastcrypt.com>)
List pgsql-jdbc
Hi,

I have a very simple (2 lines) patch which allows you to set ?readOnly=true on your connection string.

https://github.com/pgjdbc/pgjdbc/pull/26

Hopefully someone finds this useful.

Steven



pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: Extracting more useful information from PSQLException
Next
From: Chen Huajun
Date:
Subject: setObject(int,Object) can not convert Java String object to backend's Integer type