Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PgDatabaseMetaData.getIndexInfo() cast operands to smallint (#2242)
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
- Loading branch information
Showing
2 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters