[pgjdbc/pgjdbc] 73ec81: Cleanup encoding (#1441)

From: Sehrope Sarkuni <noreply(at)github(dot)com>
To: pgsql-jdbc(at)lists(dot)postgresql(dot)org
Subject: [pgjdbc/pgjdbc] 73ec81: Cleanup encoding (#1441)
Date: 2019-04-09 19:07:30
Message-ID: pgjdbc/pgjdbc/push/refs/heads/master/31bc6e-73ec81@github.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: 73ec817311857756164b1933ce2dfa8127f8dffd
https://github.com/pgjdbc/pgjdbc/commit/73ec817311857756164b1933ce2dfa8127f8dffd
Author: Sehrope Sarkuni <sehrope(at)jackdb(dot)com>
Date: 2019-04-09 (Tue, 09 Apr 2019)

Changed paths:
M pgjdbc/src/main/java/org/postgresql/core/Encoding.java
M pgjdbc/src/main/java/org/postgresql/core/UTF8Encoding.java
M pgjdbc/src/main/java/org/postgresql/util/ObjectFactory.java

Log Message:
-----------
Cleanup encoding (#1441)

* fix: Correct typo weather to whether

* misc: Change internal Encoding.testAsciiNumbers(...) to be static

* perf: Enhance Encoding constructor to allow skipping of ASCII number compatibility test

Adds a two parameter constructor to Encoding to allow sub classes to specify whether their
known ASCII compatability so as to skip testing. The only usage of it is the UTF8Encoding
which is changed to use the new constructor.

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2019-04-09 19:08:08 [pgjdbc/pgjdbc] 129960: remove reference to unknown google group (#1429)
Previous Message Dave Cramer 2019-04-09 18:50:46 [pgjdbc/pgjdbc] 31bc6e: autocommit true turns *on* autocommit by default