Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pgjdbc/pgjdbc
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: REL42.2.23
Choose a base ref
...
head repository: pgjdbc/pgjdbc
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: REL42.2.24
Choose a head ref
  • 13 commits
  • 23 files changed
  • 8 contributors

Commits on Jul 29, 2021

  1. fix: backpatch PR#2217 to fix issue #2215. (#2218)

    * fix: backpatch PR#2217 to fix issue #2215. OIDs are unsigned integers and were not being handled correctly when they exceeded the size of signed integers
    
    * Underscores are not allowed in java 6
    davecramer committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    be1d4aa View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2021

  1. fix: NPE calling getTypeInfo when alias is null (#2220)

    * fix: NPE calling getTypeInfo when alias is null
    davecramer committed Aug 2, 2021
    Configuration menu
    Copy the full SHA
    77c7d94 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2021

  1. Fix updateable result set when there are primary keys and unique keys (

    …#2228)
    
    * fix: change to updatable result set to use correctly primary or unique keys
    
    Fix issues introduced in PR# 2199 causing problems when updating tables with PK and UK.
    Originally updatable result sets support only primary keys, with the aforementioned change
    and this fix unique keys are also eligible to enable updatable result set. This change will
    find the better suited primary or unique key that has all the available columns in the query, but
    if no match is found it will continue to fail as it used to.
    
    Closes issue 2196
    
    * fix: changes to updatable result set to disable use of unique keys with nullable columns
    
    Adding logic to ensure all columns in the constraint (primary/unique) are non-nullable (always true for PKs) to guarantee 1-1 updates
    
    * fix: removal of added code after nullable unique keys are excluded
    
    No need to have IS NULL when nullable keys are not allowed to guarantee 1-1 updates
    
    * fix: exclude indices with expressions for updatable result sets
    
    Indices with expressions cannot be used (unless expression parsing / resolution
    is implemented properly - currently don't see a way to get individual list elements
    from pg_index.indexprs to enable proper expression filtering (pg_get_expr gives the
    expression, but unable to map this to a specific attribute in the index)
    
    Co-authored-by: Marquez Grabia, Christian <[email protected]>
    chalmagr and Marquez Grabia, Christian committed Sep 3, 2021
    Configuration menu
    Copy the full SHA
    c596587 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2021

  1. remove old changelog information from post. Incorrectly added by deve…

    …lopment script that is clearly still in development (#2240)
    davecramer committed Sep 9, 2021
    Configuration menu
    Copy the full SHA
    a70834e View commit details
    Browse the repository at this point in the history
  2. backpatch pr#2245 fixes case where duplicate tables are returned if t…

    …here are duplicate descriptions oids are not guaranteed to be unique in the catalog (#2248)
    davecramer committed Sep 9, 2021
    Configuration menu
    Copy the full SHA
    f4928ce View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2021

  1. test: Fix database metadata to handle older versions for function com…

    …ment
    
    Fixes DatabaseMetaDataTest to use older syntax for COMMENT ON FUNCTION with
    explicit no-arg parameter parentheses as it is required on server versions
    before v10.
    sehrope committed Sep 11, 2021
    Configuration menu
    Copy the full SHA
    bb1f728 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1c5f527 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5c6041b View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2021

  1. PgDatabaseMetaData.getIndexInfo() cast operands to smallint (#2242) (#…

    …2253)
    
    It is possible to break method PgDatabaseMetaData.getIndexInfo() by adding certain custom operators.
    This PR casts operands in a query so that PgDatabaseMetaData.getIndexInfo() works in presence
    of such operator config.
    
    Creating this operator triggers this issue:
    
    CREATE OR REPLACE FUNCTION f6(numeric, integer) returns integer as 'BEGIN return $1::integer & $2;END;' language plpgsql immutable;
    CREATE OPERATOR & (LEFTARG = numeric, RIGHTARG = integer, PROCEDURE = f6);
    
    Fixes #2241
    jsyrjala committed Sep 13, 2021
    Configuration menu
    Copy the full SHA
    33af6a7 View commit details
    Browse the repository at this point in the history
  2. backpatch PR#2247 (#2249)

    * backpatch PR#2247
    QueryExecutorImpl.receiveFastpathResult did not properly handle ParameterStatus messages.
    This in turn caused failures for some LargeObjectManager operations.
    Fixed by adding the missing code path, based on the existing handling in processResults.
    
    Closes #2237
    Original by Simon Strassl https://github.com/strassl
    
    * Fix test
    davecramer committed Sep 13, 2021
    Configuration menu
    Copy the full SHA
    7bf89c8 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2021

  1. Backport PR2148 into 42.2.x (#2254)

    * docs: Add description of connection property logServerErrorDetail
    
    * fix: Avoid leaking error message details in JDBC batches when logServerErrorDetail is disabled
    
    * test: Add a test case for logServerErrorDetail with JDBC batches
    
    Co-authored-by: Frode Carlsen <[email protected]>
    Co-authored-by: Sehrope Sarkuni <[email protected]>
    3 people committed Sep 14, 2021
    Configuration menu
    Copy the full SHA
    2917c1f View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2021

  1. fix startup regressions caused by PR #1949. Instead of checking all t…

    …ypes by OID, we can return types for well known types (#2257)
    
    * fix startup regressions caused by PR #1949. Instead of checking all types by OID, we can return types for well known types
    
    * clarifiy code, add any new types to the pgNameToSQLType cache
    davecramer committed Sep 21, 2021
    Configuration menu
    Copy the full SHA
    88cfcca View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2021

  1. Changelog 42.2.24 (#2258)

    * Bump version to 42.2.24 and update changelog
    
    * update contributors, and release post
    
    Co-authored-by: Jorge Solórzano <[email protected]>
    davecramer and jorsol committed Sep 23, 2021
    Configuration menu
    Copy the full SHA
    512799b View commit details
    Browse the repository at this point in the history
Loading