| From: | Juha Syrjälä <noreply(at)github(dot)com> |
|---|---|
| To: | pgsql-jdbc(at)lists(dot)postgresql(dot)org |
| Subject: | [pgjdbc/pgjdbc] 3a2bbd: PgDatabaseMetaData.getIndexInfo() cast operands to... |
| Date: | 2021-09-13 09:20:41 |
| Message-ID: | pgjdbc/pgjdbc/push/refs/heads/master/18939c-3a2bbd@github.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-jdbc |
Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: 3a2bbd77969903f8a4ce721d45905c72bd1688d6
https://github.com/pgjdbc/pgjdbc/commit/3a2bbd77969903f8a4ce721d45905c72bd1688d6
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)
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 | Juha Syrjälä | 2021-09-13 11:17:23 | [pgjdbc/pgjdbc] 33af6a: PgDatabaseMetaData.getIndexInfo() cast operands to... |
| Previous Message | Sehrope Sarkuni | 2021-09-11 13:03:20 | [pgjdbc/pgjdbc] bb1f72: test: Fix database metadata to handle older versio... |