| From: | Juha Syrjälä <noreply(at)github(dot)com> |
|---|---|
| To: | pgsql-jdbc(at)lists(dot)postgresql(dot)org |
| Subject: | [pgjdbc/pgjdbc] 33af6a: PgDatabaseMetaData.getIndexInfo() cast operands to... |
| Date: | 2021-09-13 11:17:23 |
| Message-ID: | pgjdbc/pgjdbc/push/refs/heads/release/42.2/5c6041-33af6a@github.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-jdbc |
Branch: refs/heads/release/42.2
Home: https://github.com/pgjdbc/pgjdbc
Commit: 33af6a780af0083b382d536c909a20145d5ff195
https://github.com/pgjdbc/pgjdbc/commit/33af6a780af0083b382d536c909a20145d5ff195
Author: Juha Syrjälä <juha(dot)syrjala+github(at)iki(dot)fi>
Date: 2021-09-13 (Mon, 13 Sep 2021)
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:
-----------
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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dave Cramer | 2021-09-13 12:40:45 | [pgjdbc/pgjdbc] 7bf89c: backpatch PR#2247 (#2249) |
| Previous Message | Juha Syrjälä | 2021-09-13 09:20:41 | [pgjdbc/pgjdbc] 3a2bbd: PgDatabaseMetaData.getIndexInfo() cast operands to... |