diff --git a/.github/workflows/matrix_builder.js b/.github/workflows/matrix_builder.js index 15c75b2af3..dbd00fb0b3 100644 --- a/.github/workflows/matrix_builder.js +++ b/.github/workflows/matrix_builder.js @@ -9,7 +9,7 @@ class Axis { this.values = values; // If all entries have same weight, the axis has uniform distribution this.uniform = values.reduce((a, b) => a === (b.weight || 1) ? a : 0, values[0].weight || 1) !== 0 - this.totalWeigth = this.uniform ? values.length : values.reduce((a, b) => a + (b.weight || 1), 0); + this.totalWeight = this.uniform ? values.length : values.reduce((a, b) => a + (b.weight || 1), 0); } static matches(row, filter) { @@ -47,7 +47,7 @@ class Axis { if (this.uniform) { return values[Math.floor(Math.random() * values.length)]; } - const totalWeight = !filter ? this.totalWeigth : values.reduce((a, b) => a + (b.weight || 1), 0); + const totalWeight = !filter ? this.totalWeight : values.reduce((a, b) => a + (b.weight || 1), 0); let weight = Math.random() * totalWeight; for (let i = 0; i < values.length; i++) { const value = values[i]; diff --git a/.github/workflows/omni.yml b/.github/workflows/omni.yml index 6cbe9c0bff..90fb3d4c42 100644 --- a/.github/workflows/omni.yml +++ b/.github/workflows/omni.yml @@ -52,7 +52,7 @@ jobs: MATRIX_SCRAM: '${{ github.event.inputs.matrix_scram }}' MATRIX_SSL: '${{ github.event.inputs.matrix_ssl }}' MATRIX_DEFAULT_TEST_GROUP: '${{ github.event.inputs.matrix_default_test_group }}' - # Script as an environment variable so we don't have to worry shell substitions + # Script as an environment variable so we don't have to worry shell substitutions MATRIX_GENERATION_NODE_JS_SCRIPT: | const DEFAULT_TEST_GROUP = process.env.MATRIX_DEFAULT_TEST_GROUP || 'fast'; diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fd640b8f6..5d54029462 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -288,7 +288,7 @@ is executed a second time it will fail. - Fix: properly set cancel socket timeout (#2044) - Fix "Required class information missing" when old org.jboss:jandex parses pgjdbc classes [issue 2008][https://github.com/pgjdbc/pgjdbc/issues/2008] - Fix PGCopyInputStream returning the last row twice when reading with CopyOut API [issue 2016][https://github.com/pgjdbc/pgjdbc/issues/2016] -- Fix Connnection.isValid() to not wait longer than existing network timeout [PR #2040](https://github.com/pgjdbc/pgjdbc/pull/2040) +- Fix Connection.isValid() to not wait longer than existing network timeout [PR #2040](https://github.com/pgjdbc/pgjdbc/pull/2040) - Fix Passwords with spaces (ASCII and non-ASCII) now work with SCRAM authentication (driver now uses SASLprep normalization) [PR #2052](https://github.com/pgjdbc/pgjdbc/pull/2052) - Fix DatabaseMetaData.getTablePrivileges() to include views, materialized views, and foreign tables [PR #2049](https://github.com/pgjdbc/pgjdbc/pull/2049) - Fix Resolve ParseError in PGtokenizer fixes #2050 @@ -313,7 +313,7 @@ fixed in #1920 - The driver returns enum and jsonb arrays elements as String objects (like in 42.2.14 and earlier versions) [PR 1879](https://github.com/pgjdbc/pgjdbc/pull/1879). - PgTokenizer was ignoring last empty token [PR #1882](https://github.com/pgjdbc/pgjdbc/pull/1882) - Remove osgi from karaf fixes Issue #1891 [PR #1902](https://github.com/pgjdbc/pgjdbc/pull/1902) -- Handle nulls when the following clasess are used: PGbox, PGcircle, PGline, PGlseg, PGpath, PGpoint, PGpolygon, and PGmoney. +- Handle nulls when the following classes are used: PGbox, PGcircle, PGline, PGlseg, PGpath, PGpoint, PGpolygon, and PGmoney. ## [42.2.16] (2020-08-20) ### Known issues @@ -610,7 +610,7 @@ thrown to caller to be dealt with so no need to log at this verbosity by pgjdbc ### Changed - Improve behaviour of ResultSet.getObject(int, Class). [PR 932](https://github.com/pgjdbc/pgjdbc/pull/932) -- Parse CommandComplete message using a regular expresion, allows complete catch of server returned commands for INSERT, UPDATE, DELETE, SELECT, FETCH, MOVE, COPY and future commands. [PR 962](https://github.com/pgjdbc/pgjdbc/pull/962) +- Parse CommandComplete message using a regular expression, allows complete catch of server returned commands for INSERT, UPDATE, DELETE, SELECT, FETCH, MOVE, COPY and future commands. [PR 962](https://github.com/pgjdbc/pgjdbc/pull/962) - Use 'time with timezone' and 'timestamp with timezone' as is and ignore the user provided Calendars, 'time' and 'timestamp' work as earlier except "00:00:00" now maps to 1970-01-01 and "24:00:00" uses the system provided Calendar ignoring the user-provided one [PR 1053](https://github.com/pgjdbc/pgjdbc/pull/1053) - Change behaviour of multihost connection. The new behaviour is to try all secondaries first before trying the master [PR 844](https://github.com/pgjdbc/pgjdbc/pull/844). - Avoid reflective access to TimeZone.defaultTimeZone in Java 9+ [PR 1002](https://github.com/pgjdbc/pgjdbc/pull/1002) fixes [Issue 986](https://github.com/pgjdbc/pgjdbc/issues/986) @@ -644,7 +644,7 @@ thrown to caller to be dealt with so no need to log at this verbosity by pgjdbc ### Fixed - Replication API: fix issue in #834 setting statusIntervalUpdate causes high CPU load. [PR 835](https://github.com/pgjdbc/pgjdbc/pull/835) [59236b74](https://github.com/pgjdbc/pgjdbc/commit/59236b74acdd400d9d91d3eb2bb07d70b15392e5) -### Regresions +### Regressions - NPE in PreparedStatement.executeBatch in case of empty batch. Fixed in 42.1.3 ## [42.1.1] (2017-05-05) diff --git a/benchmarks/build.gradle.kts b/benchmarks/build.gradle.kts index 55aae72768..e610b9a1fd 100644 --- a/benchmarks/build.gradle.kts +++ b/benchmarks/build.gradle.kts @@ -29,7 +29,7 @@ dependencies { } // See https://github.com/melix/jmh-gradle-plugin -// Unfortunately, current jmh-gradle-plugin does not allow to cusomize jmh parameters from the +// Unfortunately, current jmh-gradle-plugin does not allow to customize jmh parameters from the // command line, so the workarounds are: // a) Build and execute the jar itself: ./gradlew jmhJar && java -jar build/libs/calcite-...jar JMH_OPTIONS // b) Execute benchmarks via .main() methods from IDE (you might want to activate "power save mode" diff --git a/bom/build.gradle.kts b/bom/build.gradle.kts index 1d1eb78869..e6d6216f44 100644 --- a/bom/build.gradle.kts +++ b/bom/build.gradle.kts @@ -10,7 +10,7 @@ plugins { val String.v: String get() = rootProject.extra["$this.version"] as String // Note: Gradle allows to declare dependency on "bom" as "api", -// and it makes the contraints to be transitively visible +// and it makes the constraints to be transitively visible // However Maven can't express that, so the approach is to use Gradle resolution // and generate pom files with resolved versions // See https://github.com/gradle/gradle/issues/9866 diff --git a/docker/bin/wait_for_pg_isready b/docker/bin/wait_for_pg_isready index ab0e825b0e..633b003462 100755 --- a/docker/bin/wait_for_pg_isready +++ b/docker/bin/wait_for_pg_isready @@ -46,7 +46,7 @@ main () { exit 0 fi local elapsed=$(( $(utc_seconds) - ${started_at} )) - [[ "${elapsed}" -le "${max_wait_seconds}" ]] || err "Max wait time exceeeded" + [[ "${elapsed}" -le "${max_wait_seconds}" ]] || err "Max wait time exceeded" sleep "${sleep_seconds}" done } diff --git a/docker/postgres-server/docker-compose.yml b/docker/postgres-server/docker-compose.yml index 8f08f94608..aa5a51862a 100644 --- a/docker/postgres-server/docker-compose.yml +++ b/docker/postgres-server/docker-compose.yml @@ -22,7 +22,7 @@ services: - FSYNC=${FSYNC:-no} - SYNC_COMMIT=${SYNC_COMMIT:-yes} - FULL_PAGE_WRITES=${FULL_PAGE_WRITES:-no} - - AUTO_VACCUUM=${AUTO_VACCUUM:-no} + - AUTO_VACUUM=${AUTO_VACUUM:-no} - TRACK_COUNTS=${TRACK_COUNTS:-no} - CREATE_REPLICAS=${CREATE_REPLICAS:-no} - POSTGRES_USER=postgres diff --git a/docker/postgres-server/scripts/entrypoint.sh b/docker/postgres-server/scripts/entrypoint.sh index d3acb68db0..9b8177ec3c 100755 --- a/docker/postgres-server/scripts/entrypoint.sh +++ b/docker/postgres-server/scripts/entrypoint.sh @@ -26,7 +26,7 @@ main () { add_pg_opt "-c full_page_writes=off" fi - if is_option_disabled "${AUTO_VACCUUM}"; then + if is_option_disabled "${AUTO_VACUUM}"; then add_pg_opt "-c autovacuum=off" fi diff --git a/docs/_includes/submenu_community.html b/docs/_includes/submenu_community.html index 4aec4b92e5..eee924e82d 100644 --- a/docs/_includes/submenu_community.html +++ b/docs/_includes/submenu_community.html @@ -2,7 +2,7 @@
diff --git a/docs/_posts/2017-02-20-42.0.0-release.md b/docs/_posts/2017-02-20-42.0.0-release.md index c75d7642f9..8764e336ad 100644 --- a/docs/_posts/2017-02-20-42.0.0-release.md +++ b/docs/_posts/2017-02-20-42.0.0-release.md @@ -16,7 +16,7 @@ version: 42.0.0 - Version bumped to 42.0.0 to avoid version clash with PostgreSQL version and follow a better semantic versioning. [46634923](https://github.com/pgjdbc/pgjdbc/commit/466349236622c6b03bb9cd8d7f517c3ce0586751) - Ensure executeBatch() can be used with pgbouncer. Previously pgjdbc could use server-prepared statements for batch execution even with prepareThreshold=0. [Issue 742](https://github.com/pgjdbc/pgjdbc/issues/742) - Error position is displayed when SQL has unterminated literals, comments, etc. [Issue 688](https://github.com/pgjdbc/pgjdbc/issues/688) -- Strict handling of accepted values in getBoolean and setObject(BOOLEAN), now it follows PostgreSQL accepted values, only 1 and 0 for numeric types are acepted (previusly !=0 was true). [PR 732](https://github.com/pgjdbc/pgjdbc/pull/732) +- Strict handling of accepted values in getBoolean and setObject(BOOLEAN), now it follows PostgreSQL accepted values, only 1 and 0 for numeric types are accepted (previously !=0 was true). [PR 732](https://github.com/pgjdbc/pgjdbc/pull/732) - Return correct versions and name of the driver. [PR 668](https://github.com/pgjdbc/pgjdbc/pull/668) ### Removed diff --git a/docs/_posts/2017-07-12-42.1.2-release.md b/docs/_posts/2017-07-12-42.1.2-release.md index 5420569276..6dd30ac0c6 100644 --- a/docs/_posts/2017-07-12-42.1.2-release.md +++ b/docs/_posts/2017-07-12-42.1.2-release.md @@ -48,7 +48,7 @@ Robert 'Bobby' Zenz (1): Vladimir Gordiychuk (1): -* bug: floating logical replcation test [PR 829](https://github.com/pgjdbc/pgjdbc/pull/829) [2d3e8972](https://github.com/pgjdbc/pgjdbc/commit/2d3e8972a0b34106a8b7426619cabf852c38ddaa) +* bug: floating logical replication test [PR 829](https://github.com/pgjdbc/pgjdbc/pull/829) [2d3e8972](https://github.com/pgjdbc/pgjdbc/commit/2d3e8972a0b34106a8b7426619cabf852c38ddaa) Vladimir Sitnikov (7): diff --git a/docs/_posts/2019-06-19-42.2.6-release.md b/docs/_posts/2019-06-19-42.2.6-release.md index 8ec9fb544b..27c690347f 100644 --- a/docs/_posts/2019-06-19-42.2.6-release.md +++ b/docs/_posts/2019-06-19-42.2.6-release.md @@ -171,7 +171,7 @@ Vladimir Sitnikov (9): * docs: reflect 42.2.5 release in readme.md [d43398a5](https://github.com/pgjdbc/pgjdbc/commit/d43398a5d4c173da40e8f283f9e5fe20a971de5c) * perf: fix 1ms per async CopyAPI (regression since 42.2.5) [PR 1314](https://github.com/pgjdbc/pgjdbc/pull/1314) [e2623d63](https://github.com/pgjdbc/pgjdbc/commit/e2623d63d4b6fad0b12fb9ace842475e4a9134dc) -* chore: use openjdk7 to boostrap Travis CI images for JDK 6 [PR 1366](https://github.com/pgjdbc/pgjdbc/pull/1366) [cdfd49cf](https://github.com/pgjdbc/pgjdbc/commit/cdfd49cf8040c75d315fb41f7c94ab4f9878a060) +* chore: use openjdk7 to bootstrap Travis CI images for JDK 6 [PR 1366](https://github.com/pgjdbc/pgjdbc/pull/1366) [cdfd49cf](https://github.com/pgjdbc/pgjdbc/commit/cdfd49cf8040c75d315fb41f7c94ab4f9878a060) * test: avoid locale-dependent output in SetObject310Test [ef14ceae](https://github.com/pgjdbc/pgjdbc/commit/ef14ceae7598ad854b7af79ec2c1244662ed3fce) * fix: date rounding errors for dates before 1970 [b5653899](https://github.com/pgjdbc/pgjdbc/commit/b565389920f78702625ee263473bd9b3ec97f764) * docs: update translation files [9fcaa98e](https://github.com/pgjdbc/pgjdbc/commit/9fcaa98ec1f0018f3877fd2e15ea2c13e60bbd35) diff --git a/docs/_posts/2020-03-31-42.2.12-release.md b/docs/_posts/2020-03-31-42.2.12-release.md index 7509f95932..a084999133 100644 --- a/docs/_posts/2020-03-31-42.2.12-release.md +++ b/docs/_posts/2020-03-31-42.2.12-release.md @@ -18,7 +18,7 @@ version: 42.2.12 Christian Ramseyer (1): -* Remove merge aritfacts and fix a typo [PR 1741](https://github.com/pgjdbc/pgjdbc/pull/1741) [3871bfd8](https://github.com/pgjdbc/pgjdbc/commit/3871bfd8ba6c37be7cffdd4959f24e00b5bc86d8) +* Remove merge artifacts and fix a typo [PR 1741](https://github.com/pgjdbc/pgjdbc/pull/1741) [3871bfd8](https://github.com/pgjdbc/pgjdbc/commit/3871bfd8ba6c37be7cffdd4959f24e00b5bc86d8) Dave Cramer (1): diff --git a/docs/_posts/2020-10-09-42.2.17-release.md b/docs/_posts/2020-10-09-42.2.17-release.md index 92410ac088..a725c51806 100644 --- a/docs/_posts/2020-10-09-42.2.17-release.md +++ b/docs/_posts/2020-10-09-42.2.17-release.md @@ -39,7 +39,7 @@ Jorge Solorzano (1): Vladimir Sitnikov (8): -* fix: handle nulls when the following clasess are used: PGbox, PGcircle, PGline, PGlseg, PGpath, PGpoint, PGpolygon, and PGmoney [c745f4e5](https://github.com/pgjdbc/pgjdbc/commit/c745f4e549b119b8332ef48bbc8b8525ccba0f21) +* fix: handle nulls when the following classes are used: PGbox, PGcircle, PGline, PGlseg, PGpath, PGpoint, PGpolygon, and PGmoney [c745f4e5](https://github.com/pgjdbc/pgjdbc/commit/c745f4e549b119b8332ef48bbc8b8525ccba0f21) * chore: fix compileJava7 and compileJava6 [0308ffca](https://github.com/pgjdbc/pgjdbc/commit/0308ffcafa49271d1dabd001404b955c5e8bbe28) * chore: run GitHub actions when branch name has slash [433817d6](https://github.com/pgjdbc/pgjdbc/commit/433817d606c42e897ee4b37baf7b50eda5ab3356) * chore: seed build cache only when credentials exist (==skip on forks) [eec708a8](https://github.com/pgjdbc/pgjdbc/commit/eec708a80ad17f5a17bba5cdbcdcb640b094a965) diff --git a/docs/_posts/2021-02-18-42.2.19-release.md b/docs/_posts/2021-02-18-42.2.19-release.md index 5a0a6b39a0..442b86b9fc 100644 --- a/docs/_posts/2021-02-18-42.2.19-release.md +++ b/docs/_posts/2021-02-18-42.2.19-release.md @@ -21,7 +21,7 @@ is executed a second time it will fail. - Fix: properly set cancel socket timeout (#2044) - Fix "Required class information missing" when old org.jboss:jandex parses pgjdbc classes [issue 2008][https://github.com/pgjdbc/pgjdbc/issues/2008] - Fix PGCopyInputStream returning the last row twice when reading with CopyOut API [issue 2016][https://github.com/pgjdbc/pgjdbc/issues/2016] -- Fix Connnection.isValid() to not wait longer than existing network timeout [PR #2040](https://github.com/pgjdbc/pgjdbc/pull/2040) +- Fix Connection.isValid() to not wait longer than existing network timeout [PR #2040](https://github.com/pgjdbc/pgjdbc/pull/2040) - Fix Passwords with spaces (ASCII and non-ASCII) now work with SCRAM authentication (driver now uses SASLprep normalization) [PR #2052](https://github.com/pgjdbc/pgjdbc/pull/2052) - Fix DatabaseMetaData.getTablePrivileges() to include views, materialized views, and foreign tables [PR #2049](https://github.com/pgjdbc/pgjdbc/pull/2049) @@ -87,7 +87,7 @@ Vladimir Sitnikov (14): odubaj (1): -* Remove dependency on java-comment-preprocesor [df2297ef](https://github.com/pgjdbc/pgjdbc/commit/df2297ef6b4d26c1de9a5c90e0f8c524dd437425) +* Remove dependency on java-comment-preprocessor [df2297ef](https://github.com/pgjdbc/pgjdbc/commit/df2297ef6b4d26c1de9a5c90e0f8c524dd437425) rtrier (1): diff --git a/docs/community/contributors.html b/docs/community/contributors.html index 9094473880..1dea7aecc2 100644 --- a/docs/community/contributors.html +++ b/docs/community/contributors.html @@ -26,7 +26,7 @@

Maintainers

Please do not contact the maintainers directly unless you have a specific need to contact just them. Please use the - Github discussions + GitHub discussions if at all possible.