Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PgDatabaseMetaData.getIndexInfo() cast operands to smallint #2242

Merged
merged 1 commit into from Sep 13, 2021
Merged

PgDatabaseMetaData.getIndexInfo() cast operands to smallint #2242

merged 1 commit into from Sep 13, 2021

Commits on Sep 8, 2021

  1. PgDatabaseMetaData.getIndexInfo() cast operands to smallint

    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 8, 2021
    Copy the full SHA
    fa87cf1 View commit details
    Browse the repository at this point in the history