| From: | Nick Mancuso <noreply(at)github(dot)com> |
|---|---|
| To: | pgsql-jdbc(at)lists(dot)postgresql(dot)org |
| Subject: | [pgjdbc/pgjdbc] 94641e: fix: Always use . as decimal separator in PGInterv... |
| Date: | 2020-03-06 09:57:25 |
| Message-ID: | pgjdbc/pgjdbc/push/refs/heads/master/202f88-7da600@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: 94641ef08922d77ac021f70af91cafe85866d854
https://github.com/pgjdbc/pgjdbc/commit/94641ef08922d77ac021f70af91cafe85866d854
Author: Toddy69 <3174167+Toddy69(at)users(dot)noreply(dot)github(dot)com>
Date: 2020-02-13 (Thu, 13 Feb 2020)
Changed paths:
M pgjdbc/src/main/java/org/postgresql/util/PGInterval.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc2/IntervalTest.java
Log Message:
-----------
fix: Always use . as decimal separator in PGInterval. (#1705)
Commit: 9a3e0f0ce92cc0a7addb369127b7790c5199cea3
https://github.com/pgjdbc/pgjdbc/commit/9a3e0f0ce92cc0a7addb369127b7790c5199cea3
Author: Dave Cramer <davecramer(at)gmail(dot)com>
Date: 2020-02-23 (Sun, 23 Feb 2020)
Changed paths:
M CHANGELOG.md
M docs/documentation/head/connect.md
M pgjdbc/src/main/java/org/postgresql/PGProperty.java
M pgjdbc/src/main/java/org/postgresql/core/v3/ConnectionFactoryImpl.java
M pgjdbc/src/main/java/org/postgresql/hostchooser/HostRequirement.java
M pgjdbc/src/main/java/org/postgresql/hostchooser/HostStatus.java
M pgjdbc/src/test/java/org/postgresql/test/hostchooser/MultiHostsConnectionTest.java
Log Message:
-----------
remove the user of the word master internally (#1713)
* deprecate the use of the word master
remove the use of the word master internally
* remove more uses of the word master
Document use of the word primary and secondary
* Use PGProperty to set values, avoid hardcoding names
Commit: 630692d6823d9ca65059c59ab01d184b33d8ea9c
https://github.com/pgjdbc/pgjdbc/commit/630692d6823d9ca65059c59ab01d184b33d8ea9c
Author: Markus Winand <markus(dot)winand(at)winand(dot)at>
Date: 2020-02-24 (Mon, 24 Feb 2020)
Changed paths:
M docs/documentation/head/ext.md
Log Message:
-----------
Typo in documentation (case instead of cast) (#1715)
Commit: 5bb5f409b8372e4be86c14a00309ab60b8e17ed8
https://github.com/pgjdbc/pgjdbc/commit/5bb5f409b8372e4be86c14a00309ab60b8e17ed8
Author: adrklos <adrian(dot)kloskowski(at)heimdalldata(dot)com>
Date: 2020-02-24 (Mon, 24 Feb 2020)
Changed paths:
M README.md
M docs/documentation/head/connect.md
M pgjdbc/src/main/java/org/postgresql/PGConnection.java
M pgjdbc/src/main/java/org/postgresql/PGProperty.java
M pgjdbc/src/main/java/org/postgresql/PGStatement.java
M pgjdbc/src/main/java/org/postgresql/core/PGStream.java
M pgjdbc/src/main/java/org/postgresql/core/QueryExecutor.java
M pgjdbc/src/main/java/org/postgresql/core/v3/QueryExecutorImpl.java
A pgjdbc/src/main/java/org/postgresql/core/v3/adaptivefetch/AdaptiveFetchQueryInfo.java
A pgjdbc/src/main/java/org/postgresql/core/v3/adaptivefetch/AdaptiveFetchQueryMonitoring.java
M pgjdbc/src/main/java/org/postgresql/ds/common/BaseDataSource.java
M pgjdbc/src/main/java/org/postgresql/jdbc/PgConnection.java
M pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSet.java
M pgjdbc/src/main/java/org/postgresql/jdbc/PgStatement.java
A pgjdbc/src/test/java/org/postgresql/core/v3/adaptivefetch/AdaptiveFetchQueryMonitoringTest.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc2/Jdbc2TestSuite.java
A pgjdbc/src/test/java/org/postgresql/test/jdbc42/AdaptiveFetchSizeTest.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc42/Jdbc42TestSuite.java
Log Message:
-----------
feat: implementation of adaptive fetching (#1707)
* feat: implementation of adaptive fetching
Implementation of adaptive fetching logic during process of fetching result set.
Change adds three new properties used with adaptive fetching:
- adaptiveFetch - use to enable/disable work of adaptive fetching
- adaptiveFetchMinimum - use to define minimum size computed during adaptive fetching
- adaptiveFetchMaximum - use to define maximum size computed during adaptive fetching
Adaptive fetching is used to compute fetch size to fully use size defined by maxResultBuffer.
Computing is made by dividing maxResultBuffer size by max row result size noticed so far.
Each query have separate adaptive fetch size computed, but same queries have it shared.
If adaptive fetch is turned on, first fetch is going to be made with defaultRowFetchSize,
next fetching of resultSet will be made with computed adaptive fetch size.
If adaptive fetch is turned on during fetching, then first fetching made by ResultSet will
be made with defaultRowFetchSize, next will use computed adaptive fetch size.
Additionally, resultSet have new method - getLastUsedFetchSize to get fetch size used during
last fetching. If adaptive fetching is turned on, then getFetchSize will return lastUsedFetchSize.
Property adaptiveFetch need properties defaultRowFetchSize and maxResultBuffer to work.
Commit to add:
- unit tests for AdaptiveFetchQueryMonitoring class;
- some style fixes (removing extra spaces, simpler code in setMaxRowSize method in PGStream class).
Commit to add:
- integration tests for adaptive fetching process;
- change casting to from primitive types to Wrapper classes in AdaptiveFetchQueryMonitoringTest.
Change in AdaptiveFetchSizeTest:
- is using PreparedStatement during tests now;
- added assume to check if preferQueryMode is not Simple;
- new method to open connection and creating table to remove code repetitiveness.
Commit to add explanation about adaptive fetching process in AdaptiveFetchQueryMonitoring class.
Commit: 13a644b4945996dff5274e45741313380d4a47e6
https://github.com/pgjdbc/pgjdbc/commit/13a644b4945996dff5274e45741313380d4a47e6
Author: Dave Cramer <davecramer(at)gmail(dot)com>
Date: 2020-02-24 (Mon, 24 Feb 2020)
Changed paths:
M README.md
M docs/documentation/head/connect.md
M pgjdbc/src/main/java/org/postgresql/PGConnection.java
M pgjdbc/src/main/java/org/postgresql/PGProperty.java
M pgjdbc/src/main/java/org/postgresql/PGStatement.java
M pgjdbc/src/main/java/org/postgresql/core/PGStream.java
M pgjdbc/src/main/java/org/postgresql/core/QueryExecutor.java
M pgjdbc/src/main/java/org/postgresql/core/v3/QueryExecutorImpl.java
R pgjdbc/src/main/java/org/postgresql/core/v3/adaptivefetch/AdaptiveFetchQueryInfo.java
R pgjdbc/src/main/java/org/postgresql/core/v3/adaptivefetch/AdaptiveFetchQueryMonitoring.java
M pgjdbc/src/main/java/org/postgresql/ds/common/BaseDataSource.java
M pgjdbc/src/main/java/org/postgresql/jdbc/PgConnection.java
M pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSet.java
M pgjdbc/src/main/java/org/postgresql/jdbc/PgStatement.java
R pgjdbc/src/test/java/org/postgresql/core/v3/adaptivefetch/AdaptiveFetchQueryMonitoringTest.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc2/Jdbc2TestSuite.java
R pgjdbc/src/test/java/org/postgresql/test/jdbc42/AdaptiveFetchSizeTest.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc42/Jdbc42TestSuite.java
Log Message:
-----------
Revert "feat: implementation of adaptive fetching (#1707)" (#1717)
This reverts commit 5bb5f409b8372e4be86c14a00309ab60b8e17ed8.
Commit: 25eb32c8681eaa4aaac801808b6028e9f5dfbea8
https://github.com/pgjdbc/pgjdbc/commit/25eb32c8681eaa4aaac801808b6028e9f5dfbea8
Author: Mike Goodman <MSGoodman(at)users(dot)noreply(dot)github(dot)com>
Date: 2020-02-25 (Tue, 25 Feb 2020)
Changed paths:
M pgjdbc/src/main/java/org/postgresql/jdbc/PgDatabaseMetaData.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc2/DatabaseMetaDataTest.java
Log Message:
-----------
feat: add way to distinguish base and partitioned tables in PgDatabaseMetaData.getTables (#1708)
* feat: add way to distinguish base and partitioned tables in PgDatabaseMetaData.getTables
There is currently no way to distinguish between base tables and
partitioned tables in the response from PgDatabadeMetaData.getTables.
Fix this by adding PARTITIONED TABLE to the tableTypeClauses map and
thus the TABLE_TYPE field in the query in getTables. Also update a test
(testPartitionedTables) that was using TABLE_TYPE of TABLE to grab
partitioned tables.
This should close #1590. However, perhaps this could be considered a
breaking change for anyone using getTables and expecting partitioned
tables to show up for .getTables(s, s1, s2, new String[]{"TABLE"})?
* test: improve database metadata table type test
Commit: 30843e45edc1e2bac499df2d1576c2db4d3d3309
https://github.com/pgjdbc/pgjdbc/commit/30843e45edc1e2bac499df2d1576c2db4d3d3309
Author: crwr45 <34647635+crwr45(at)users(dot)noreply(dot)github(dot)com>
Date: 2020-02-25 (Tue, 25 Feb 2020)
Changed paths:
M pgjdbc/src/main/java/org/postgresql/jdbc/PgDatabaseMetaData.java
A pgjdbc/src/test/java/org/postgresql/test/jdbc42/DatabaseMetaDataTest.java
Log Message:
-----------
fix: allow DatabaseMetaData.getColumns to describe an unset scale (#1716)
getColumns returns a 0 for the scale of a Decimal or Numeric column when the
scale is 0, and when the scale is null. The caller can then not differentiate
between a 0 or a null without another query.
This change replaces the 0 in the ResultSet for scale with a null when describing
an unscaled Decimal or Numeric column. getInt will still convert the null to a 0,
but the caller can then use wasNull() to find out if the underlying value was 0
or null.
This addresses Issue 1712. It is a breaking change, but if the correct getter
(getInt) is used for the column, there is no difference. Other getters may behave
differently.
Signed-off-by: crwr45 <charlie(dot)wheelerrobinson(at)gmail(dot)com>
Commit: f554118a95cda1470fc7ac8b67b8ae7c18b25826
https://github.com/pgjdbc/pgjdbc/commit/f554118a95cda1470fc7ac8b67b8ae7c18b25826
Author: Mike Goodman <MSGoodman(at)users(dot)noreply(dot)github(dot)com>
Date: 2020-02-26 (Wed, 26 Feb 2020)
Changed paths:
M pgjdbc/src/main/java/org/postgresql/jdbc/TypeInfoCache.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc2/ArrayTest.java
Log Message:
-----------
fix: add support for full names of data types (#1719)
* fix: add support for full names of data types
Currently the driver only recognizes alias names (e.g. "varchar",
"float8", "timetz") and not full names (e.g. "character varying",
"double precision", "time with time zone"); add support for the full
names of data types.
Closes #1563
* fix: add timestamp with timezone to full data type name array test
Commit: 0faf9ce23a6c5f323545e374f0781b9c1d3cedcd
https://github.com/pgjdbc/pgjdbc/commit/0faf9ce23a6c5f323545e374f0781b9c1d3cedcd
Author: Dave Cramer <davecramer(at)gmail(dot)com>
Date: 2020-02-26 (Wed, 26 Feb 2020)
Changed paths:
M pgjdbc/src/main/java/org/postgresql/copy/CopyManager.java
Log Message:
-----------
document copy out not closing output stream (#1721)
* document copyout not closing output stream
Commit: 5fbe04626c64b7c46a22a0cea108921305b14074
https://github.com/pgjdbc/pgjdbc/commit/5fbe04626c64b7c46a22a0cea108921305b14074
Author: Mike Goodman <MSGoodman(at)users(dot)noreply(dot)github(dot)com>
Date: 2020-02-27 (Thu, 27 Feb 2020)
Changed paths:
M pgjdbc/src/main/java/org/postgresql/jdbc/PgDatabaseMetaData.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc4/DatabaseMetaDataHideUnprivilegedObjectsTest.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc4/DatabaseMetaDataTest.java
Log Message:
-----------
fix: getProcedures returns only procedures (not functions) for psql11+ (#1723)
* fix: getProcedures returns only procedures (not functions) for psql11+
Currently the PGDatabaseMetaData.getProcedures() method returns both
procedures and functions. This made sense prior to PostgreSQL11, but now
actual procedures can be created instead of just functions, and pgjdbc
has an added getFunctions() method to distinguish between the two. For
only PostgreSQL version 11 and onward, this will make getFunctions()
return only functions and getProcedures() return only procedures.
I believe this closes #1340 and #1629, which both seem to essentially be
the same thing?
* only create procedure in tests for psql versions 11 and higher
* testGetProcedures now checks for functions or procedures depending on psql version
* only test 'create procedure' for psql 11+
Commit: 7da60074916c063c18d6c91e92e5cb360de69cd3
https://github.com/pgjdbc/pgjdbc/commit/7da60074916c063c18d6c91e92e5cb360de69cd3
Author: Nick Mancuso <31252532+nmancus1(at)users(dot)noreply(dot)github(dot)com>
Date: 2020-03-04 (Wed, 04 Mar 2020)
Changed paths:
M pgjdbc/pom.xml
Log Message:
-----------
perf: upgrade maven-checkstyle-plugin to 3.1.1 (#1726)
upgrade maven-checkstyle-plugin to newest version
Compare: https://github.com/pgjdbc/pgjdbc/compare/202f88e13c11...7da60074916c
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Vladimir Sitnikov | 2020-03-06 10:00:53 | [pgjdbc/pgjdbc] ca1f60: Revert "fix: remove receiving EOF from backend aft... |
| Previous Message | Vladimir Sitnikov | 2020-03-06 09:22:56 | [pgjdbc/pgjdbc] e9bdb9: chore: migrate build scripts to Gradle |