[Git][java-team/libpostgresql-jdbc-java][master] 3 commits: New upstream version 42.2.23
Christoph Berg (@myon)
gitlab at salsa.debian.org
Tue Jul 27 16:22:15 BST 2021
Christoph Berg pushed to branch master at Debian Java Maintainers / libpostgresql-jdbc-java
Commits:
62407510 by Christoph Berg at 2021-07-27T17:05:29+02:00
New upstream version 42.2.23
- - - - -
31f57f11 by Christoph Berg at 2021-07-27T17:05:33+02:00
Update upstream source from tag 'upstream/42.2.23'
Update to upstream version '42.2.23'
with Debian dir 302fa1bd043bd934dd733f5bf6065f5549c4296b
- - - - -
f6e76548 by Christoph Berg at 2021-07-27T17:21:32+02:00
New upstream version 42.2.23.
- - - - -
25 changed files:
- certdir/badclient.crt
- certdir/badclient.key
- certdir/badclient.p12
- certdir/badclient.pk8
- certdir/badroot.crt
- certdir/badroot.key
- certdir/badroot.srl
- certdir/goodclient.crt
- − certdir/goodclient.der
- certdir/goodclient.key
- certdir/goodclient.p12
- certdir/goodclient.pk8
- certdir/goodroot.crt
- debian/changelog
- pom.xml
- src/main/java/org/postgresql/core/TypeInfo.java
- src/main/java/org/postgresql/jdbc/PgDatabaseMetaData.java
- src/main/java/org/postgresql/jdbc/PgResultSet.java
- src/main/java/org/postgresql/jdbc/TypeInfoCache.java
- src/main/java/org/postgresql/util/DriverInfo.java
- src/main/resources/META-INF/MANIFEST.MF
- src/test/java/org/postgresql/test/jdbc2/DatabaseMetaDataTest.java
- src/test/java/org/postgresql/test/jdbc2/UpdateableResultTest.java
- − src/test/java/org/postgresql/test/jdbc3/TestCommitError.java
- src/test/java/org/postgresql/test/jdbc42/DatabaseMetaDataTest.java
Changes:
=====================================
certdir/badclient.crt
=====================================
@@ -1,24 +1,24 @@
-----BEGIN CERTIFICATE-----
-MIIEEjCCAfoCFBrHU9NbhHp2sM0sVwcQtK0+b/TVMA0GCSqGSIb3DQEBCwUAMEsx
+MIIEEjCCAfoCFBBZnyyHCR5q6FiHA+joyxjVXLQSMA0GCSqGSIb3DQEBCwUAMEsx
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CcxAvBPsGW9J8N6A7wihSS9Bhpx73apLkW
+dJZm7rERMmnfHd+n+zlPvOfR36WbjWBlocIku/xO03iBo5fRyUh56HYVXIYRHoD9
+5MNLhMxdaqTepPUxc/vnuoD/ThNfqNmkF1t7CF8ASct/KV9EvtBjYSIR+yR+nIao
+r5Hxmaw6wRDG+2BUoCBYyYg3/jDe+cE5jur+VmC9sgQRtLX7FjQWYeFyi1hX+gB8
+iv7CU9a7oDAeGGAqM+pBiZ16OCQSmZPKam3zhyhONHo0PFMq5oSqwOkgpjTUeYza
+cCAWDJtXqZbaogVQpN32gkEonLMGalLCEU+f9peODeULGoxZZV8jVbBUEoDkS1i3
+i329YTUJWoF6D/OwhHqPd5UIf9EJKBd/hTP5bbmalPmJQvlzsXtvFCPw3+f4bZxD
+OAKO599JHNkYWa8Q5ML5IWg7NKh/BX0PITGkv2WwqBLeTMCqgig=
-----END CERTIFICATE-----
=====================================
certdir/badclient.key
=====================================
@@ -1,27 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
-MIIEpAIBAAKCAQEA1G40sc95qc/WQIyqgVHqi++0Pln1cKPxlAc1Yjtd+z0kF3gp
-4X6FiVD2gQIjgjwHLWXHHViES2l+7ymiR6Rz5ME+fEuWZkMZssnRlObD4xFnnp8W
-ufOt7XIIHwGJlHF1b2Koe5ae0Z+co105VY/klhrbL/Yd60HctAWqXkK1F985xU/i
-eshlWa82v7GHSjYMhygC4ubzQGDVoMxuIlY/0L/iQmnv5IUJwZs5rwZ+0vyNyPmd
-tMa2MIOZWIAXdOjN84lqFo7YBC0P2YFcgQKt3Rx7et47pq+JMXTy3+bU7ZDB293E
-C81CCvptZrS4LEcyaHOnGP7SbbZpyjl0n+HrXQIDAQABAoIBAQC/Z1UfaVur/9KC
-crwmrVJyJ9b130Rg67b9s8kL64Xwm9RrOSAzRza21TZmYzDvZXrqEqxn6pu4/yMa
-Bx9rAehSkzPj9o9bMNZ025d1XL/fVo1QxPNLNR7ftUFP/qiiEeDILdK1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0ygDgycgbAXL/3eZfwqgfqu5oTNGnPJ0kpI1RT7yNog
+7YnmT5xKi+al1WYRZFEZ2aVv1ikrsy0isPzhWrYtAoGAZjbLb9FJ9dRdn3aqDx/S
+DSqncqR54iJ9zqSui+kfjXyKN4yYKhzQGWtMu4qMvuHBtlz4dRkm11IDzwCKG2jT
+kZ9UHzQHmBgXR44VuEepDPwE5zGO4a0ME7LQet0eJ146/q5SlfqSeeroQSG5vjGf
+1fi6oxvBz0W1wa5RAQflkgkCgYEA1qOwBP7MaaLBGEQc3DYgXDXOOjTI6EFr6mXh
+6yVxTQngD0D6XxPbHp4flbn+YVO+XvSI3yvwkz2frsoKClewROhB18TTlmSVE5MK
+5hr+AqH557+v4rJWsHQQTuteHH/nLBrlq+fWBJMRP722ph/pDIOuQJf4ZEqRQKbC
+X+XyjVECgYEAjXt6uwSi6ovZoxsjjFIok9EeHf8VbsOsQN33iJkWRZFp/fxmy0Qw
+lSwb2ByNOgP0XZ1qIlMpzkxkIaHSp5iwF1rPwT+4lXiUcyoLK/GtR2oD+KZ5UJK3
+PgEBk5eL+UrhI9eiedGQjGQIjqYJ2zl0BgDJMXHvbjFluchxkTwAtsA=
-----END RSA PRIVATE KEY-----
=====================================
certdir/badclient.p12
=====================================
Binary files a/certdir/badclient.p12 and b/certdir/badclient.p12 differ
=====================================
certdir/badclient.pk8
=====================================
Binary files a/certdir/badclient.pk8 and b/certdir/badclient.pk8 differ
=====================================
certdir/badroot.crt
=====================================
@@ -1,32 +1,32 @@
-----BEGIN CERTIFICATE-----
-MIIFdzCCA1+gAwIBAgIUbj8F0il3g59jSOi60A/xzVkFRPcwDQYJKoZIhvcNAQEL
+MIIFdzCCA1+gAwIBAgIUEjAlC/uP068o5ssD61kJIeqlil8wDQYJKoZIhvcNAQEL
BQAwSzELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAkNBMRQwEgYDVQQKDAtQZ0pkYmMg
-dGVzdDEZMBcGA1UEAwwQcm9vdCBjZXJ0aWZpY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ORAdXeu3/1iS+
+MTz/Dypq7VPE2h9xWtzJb7YFsLg342x5YxW59G+vtBy0u4tf6AoomZk0EME68P7H
+VicKoFBEdTVudn4Ts1jhcfahBMwgD7b1d59eQLCAST/5vmEBTdpzCtzIzf7gjH9s
+rgPZ6nDJcFhHi0BjUbMiKh2wqvOL6erpwtbDOTccFfEYWMT3uteOaMsPZLNMeq6R
+xKM8NitvBXuqIZOcgrrpABwek+/XdRnHqpsFTCNzPfHzP8/p/6tp7+DbZ1IF/uqz
+3HcpkqolJfg6Rlo=
-----END CERTIFICATE-----
=====================================
certdir/badroot.key
=====================================
@@ -1,54 +1,54 @@
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
-DEK-Info: AES-256-CBC,0FD2DF610C4C6635674474640336EB8B
+DEK-Info: AES-256-CBC,BF4CD6E429942664D50549895DA4C8D8
-/sqnRjDweOBzEXeTWtvXmT7MWoCvHUoyTivoFw+5XxGaocN+82fXf521zDkPDhDc
-3nTuIdKbGncor3LreVnUb9GRDnICPpWbREqP+3hGKnOOC2NsHA6CgwWrNw37HBHk
-wy2IkWGDKLikmluymfnEEy+ebVfGMVqYJGL74Yu3AuO/8n0aCI5eb6EGsfeq529Y
-q2TNtTCGsVZc2jFnroI91hsDpX+XzwdCrfSvuMasudPrmqi14PSFO0KvTwQ+uHUx
-rrbczAmc4zlnfz+cYH/95eAGKaRRSxx+iCJHsdhg57YhljkY9GdGQHQ2inXEyfXk
-4Jbnwpansd/WGStul1jUDTGY6oTyNyYCZpTqSxTcJQcMzBg4jubNEOFviO5rE6g4
-iUv8CQKeNff3adjfOdwCkqTJOfrJEfoKqt6hJMJaKvGq2V5KCm/CCSnNX1hWMEzf
-IVTw/k13L5s1MMgqNuGKMTag0TrcNCj/ZQYLEDlnpZYtSKaMQYNKdvdlteg8sy0n
-udcGUbrD0Idzcx3D5HtRGv5DRsSxWbp5+Z3gLIAlKBEG/1YhnVaISsal+xbO9rbO
-40U8l/W35O+N5CmLh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YVNBX/2GUblcrRDUzysr7S5Z
+OLRYEAAGvlLrefNtTYcTt3kG1W8y53SGZYsCdTjkqRt0v7JzAvOeH/EVPAeSwGbQ
+jF7uVj3P8kZAEEQlqrHdJ/XkD9J0dQ+jGkVBWqH+9oHFesjAf53aCazHJFCqIFs9
+EqIY5/xXOXYUTZj6e9UR2QtxQxaFvOb7rnn6Pk9Cj3wg+pOsAY6Xi0/fgy+ti43k
+TM5/eEAxElXUEbqCL4+miH8g0pOCv1BuKlhre5yZb6In6jmErc9KvvA+jabn2u3d
+moPov5+c5g5o/yqKgAFmysTCDg3WUjPOtNLNdlX/0G2vqABTgR+oOVAd/pA26nck
+qxIwtmARFzpDAtmv95gEQSjQAyx0wjItAtvexusxX12gptxgunCiYuko9H1GYLy2
+TyEzs/HBOO3bFl6bsiFGqiHSjgvMF/x3eGDq8S3ZdYrk/BByeXqWmp35p8mV9rwt
-----END RSA PRIVATE KEY-----
=====================================
certdir/badroot.srl
=====================================
@@ -1 +1 @@
-1AC753D35B847A76B0CD2C570710B4AD3E6FF4D5
+10599F2C87091E6AE8588703E8E8CB18D55CB412
=====================================
certdir/goodclient.crt
=====================================
@@ -1,24 +1,24 @@
-----BEGIN CERTIFICATE-----
-MIIEEjCCAfoCFGeKHvYImPIGI/TzylXxoP4/g8A+MA0GCSqGSIb3DQEBCwUAMEsx
+MIIEEjCCAfoCFFTo+fMF4VshhRLB9KPR+UJYCMqjMA0GCSqGSIb3DQEBCwUAMEsx
CzAJBgNVBAYTAlVTMQswCQYDVQQIDAJDQTEUMBIGA1UECgwLUGdKZGJjIHRlc3Qx
-GTAXBgNVBAMMEHJvb3QgY2VydGlmaWNhdGUwHhcNMjAwMjEyMjIxNTM3WhcNMjEw
-NjI2MjIxNTM3WjBAMQswCQYDVQQGEwJVUzELMAkGA1UECAwCQ0ExFTATBgNVBAoM
+GTAXBgNVBAMMEHJvb3QgY2VydGlmaWNhdGUwHhcNMjEwNjI3MTM1NjM1WhcNMzEw
+NjI1MT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/gBndplqR5tZiU1XU
+J5/SyLkmLkjNZPRrrgKb9sq0OrxlkX5nAZoEwfS9QPj/cO1X5KcojlcDa77B1WCj
+0X9n38eN5Q5gbCfBRFM7nHeUlTJExJYiaFKe7khfADJ6VOE44QOTrC+pO8FnNspc
+Kd0z1axhTs5wVGx5m02u+noYLW79nkk5ePdP2Wj/QF8TG+MroVE=
-----END CERTIFICATE-----
=====================================
certdir/goodclient.der deleted
=====================================
Binary files a/certdir/goodclient.der and /dev/null differ
=====================================
certdir/goodclient.key
=====================================
@@ -1,27 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
-MIIEpAIBAAKCAQEA51s55cr2h5G/4ns51Opdu12jg91fICjNAruCD5Vz5TBdD+ki
-TBZrAjbI9Md4RHfQnvwvQxS2IPJcf9pjIxKgCn4ugPYvBZybp7LDNKQsUVzA+2w4
-HuoJiRdfP70TTiTph2T/or9PHuZ9E0NinpStIP4FSr7gVDpZmF8sLZj6lGgMCspG
-gqnFZI1cYd3lE3ESDBeqlZ6agyka7DarukVI7j5zWHR3OdHB9hF7d3xRgEZL0vpv
-+I25X5dP26SE6AHeSHY4JlZKm/clotDAp0VMQ8Fmv1+gPomVPNXuQoJwYUALHcwL
-PBeHC5602U29StLBBANoBeXQR4NxAl+zEuZAdQIDAQABAoIBAE9Ruo7rQAyIztXS
-U6iI1av4VahPDF8VPfxy1wuKvNpV84IR9v1JLlTq/YjWnogy3+ayJW4FOtAe59G5
-yQVsTExsqHr0bHirEb60DjMNGlimyU8p8i+/I5fJ2JEcvPKsuxf9a5ubpX+9nCIv
-ly8xYA4QqTXQLU8TVkZkUtwrN7YLMz0YTHUrJ4UNv76cmx/nTfmuC7CcbUc0udma
-LNV5717od3YO1Gp+QsnB5jP9p7XfJH99tvMrujbeAgwzq37mFwDScbyYbcBLJJa2
-nQZSPZkyiAC0pYSyw0CpzYRre9T0Y4mbYGZoAN1NY9MSh2GBI5DgNonsvO7bQ1IJ
-nIqwjR0CgYEA9E/jsvOZU+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gGmvwgSttBUKoFC+EJStQ8kqSPG8Ew5dc/Y8lZZ1
+LMgT11SvIOSYV+92REzFnL2i20RntcIkE2eP10lDNSmMxt4Y0niy1nRr64Rw6cPX
+EHupvIjlDwb8rhPEyT0BjaNHlKukdFtEg5X4gz2AheqtMYq6+fR8QUKxNJL9aQIJ
+esLhAoGAPR0TKIlF5qX8OF4ugmnRgzTHoCrh8OOWKNo2dBsxhImP6yml67ti12ol
+52x3Au3LAT14Lp3ZuLcTHeC+iwds7GsZXi7vMo25V0ktwbiLLhHmzm1YN8I2fSaI
+QxICgq/Jq1eicz12oQCjVMhXAZQy2KI8awNcmuh+3zoDjYxiNTQ=
-----END RSA PRIVATE KEY-----
=====================================
certdir/goodclient.p12
=====================================
Binary files a/certdir/goodclient.p12 and b/certdir/goodclient.p12 differ
=====================================
certdir/goodclient.pk8
=====================================
Binary files a/certdir/goodclient.pk8 and b/certdir/goodclient.pk8 differ
=====================================
certdir/goodroot.crt
=====================================
@@ -1,32 +1,32 @@
-----BEGIN CERTIFICATE-----
-MIIFdzCCA1+gAwIBAgIUGc1fU1BurY/TzdSmEN2P2Ul5U84wDQYJKoZIhvcNAQEL
+MIIFdzCCA1+gAwIBAgIUZok1lfYqJerJHIiWp/xDukOP1SYwDQYJKoZIhvcNAQEL
BQAwSzELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAkNBMRQwEgYDVQQKDAtQZ0pkYmMg
-dGVzdDEZMBcGA1UEAwwQcm9vdCBjZXJ0aWZpY2F0ZTAeFw0yMDAyMTIyMjE1Mzda
-Fw0yMjEyMDIyMjE1MzdaMEsxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJDQTEUMBIG
+dGVzdDEZMBcGA1UEAwwQcm9vdCBjZXJ0aWZpY2F0ZTAeFw0yMTA2MjcxMzU2MzVa
+Fw0zMTA2MjUxMzU2MzVaMEsxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJDQTEUMBIG
A1UECgwLUGdKZGJjIHRlc3QxGTA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EVJGwhPTf2S7J
+2arAdVehUudv304=
-----END CERTIFICATE-----
=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+libpgjava (42.2.23-1) unstable; urgency=medium
+
+ * New upstream version 42.2.23.
+
+ -- Christoph Berg <myon at debian.org> Tue, 27 Jul 2021 17:05:40 +0200
+
libpgjava (42.2.22-1) unstable; urgency=medium
* New upstream version 42.2.22.
=====================================
pom.xml
=====================================
@@ -10,7 +10,7 @@
<artifactId>postgresql</artifactId>
<packaging>jar</packaging>
<name>PostgreSQL JDBC Driver - JDBC 4.2</name>
- <version>42.2.22</version>
+ <version>42.2.23</version>
<description>Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database</description>
<url>https://github.com/pgjdbc/pgjdbc</url>
=====================================
src/main/java/org/postgresql/core/TypeInfo.java
=====================================
@@ -85,6 +85,8 @@ public interface TypeInfo {
Iterator<String> getPGTypeNamesWithSQLTypes();
+ Iterator<Integer> getPGTypeOidsWithSQLTypes();
+
/* @Nullable */ Class<? extends PGobject> getPGobject(String type);
String getJavaClass(int oid) throws SQLException;
=====================================
src/main/java/org/postgresql/jdbc/PgDatabaseMetaData.java
=====================================
@@ -1647,7 +1647,7 @@ public class PgDatabaseMetaData implements DatabaseMetaData {
} else {
decimalDigits = connection.getTypeInfo().getScale(typeOid, typeMod);
columnSize = connection.getTypeInfo().getPrecision(typeOid, typeMod);
- if (columnSize == 0) {
+ if ( sqlType != Types.NUMERIC && columnSize == 0 ) {
columnSize = connection.getTypeInfo().getDisplaySize(typeOid, typeMod);
}
}
@@ -1680,17 +1680,18 @@ public class PgDatabaseMetaData implements DatabaseMetaData {
tuple[18] = null; // SCOPE_CATLOG
tuple[19] = null; // SCOPE_SCHEMA
tuple[20] = null; // SCOPE_TABLE
- tuple[21] = baseTypeOid == 0
+ tuple[21] = baseTypeOid == 0 // SOURCE_DATA_TYPE
? null
- : connection.encodeString(Integer.toString(connection.getTypeInfo().getSQLType(baseTypeOid))); // SOURCE_DATA_TYPE
+ : connection.encodeString(Integer.toString(connection.getTypeInfo().getSQLType(baseTypeOid)));
String autoinc = "NO";
if (defval != null && defval.contains("nextval(") || identity != null) {
autoinc = "YES";
}
- tuple[22] = connection.encodeString(autoinc);
+ tuple[22] = connection.encodeString(autoinc); // IS_AUTOINCREMENT
+
// there is no way to tell if the value was actually autogenerated..
- tuple[23] = connection.encodeString("");
+ tuple[23] = connection.encodeString(""); // IS_AUTOGENERATED
v.add(new Tuple(tuple));
}
@@ -2064,16 +2065,17 @@ public class PgDatabaseMetaData implements DatabaseMetaData {
while (rs.next()) {
byte[] /* @Nullable */ [] tuple = new byte[8][];
int typeOid = (int) rs.getLong("atttypid");
+ int sqlType = connection.getTypeInfo().getSQLType(typeOid);
int typeMod = rs.getInt("atttypmod");
int decimalDigits = connection.getTypeInfo().getScale(typeOid, typeMod);
int columnSize = connection.getTypeInfo().getPrecision(typeOid, typeMod);
- if (columnSize == 0) {
+ if ( sqlType != Types.NUMERIC && columnSize == 0) {
columnSize = connection.getTypeInfo().getDisplaySize(typeOid, typeMod);
}
tuple[0] = connection.encodeString(Integer.toString(scope));
tuple[1] = rs.getBytes("attname");
tuple[2] =
- connection.encodeString(Integer.toString(connection.getTypeInfo().getSQLType(typeOid)));
+ connection.encodeString(Integer.toString(sqlType));
tuple[3] = connection.encodeString(connection.getTypeInfo().getPGType(typeOid));
tuple[4] = connection.encodeString(Integer.toString(columnSize));
tuple[5] = null; // unused
@@ -2170,6 +2172,49 @@ public class PgDatabaseMetaData implements DatabaseMetaData {
return createMetaDataStatement().executeQuery(sql);
}
+ /*
+ This is for internal use only to see if a resultset is updateable.
+ Unique keys can also be used so we add them to the query.
+ */
+ protected ResultSet getPrimaryUniqueKeys(/* @Nullable */ String catalog, /* @Nullable */ String schema, String table)
+ throws SQLException {
+ String sql;
+ sql = "SELECT NULL AS TABLE_CAT, n.nspname AS TABLE_SCHEM, "
+ + " ct.relname AS TABLE_NAME, a.attname AS COLUMN_NAME, "
+ + " (information_schema._pg_expandarray(i.indkey)).n AS KEY_SEQ, ci.relname AS PK_NAME, "
+ + " information_schema._pg_expandarray(i.indkey) AS KEYS, a.attnum AS A_ATTNUM "
+ + "FROM pg_catalog.pg_class ct "
+ + " JOIN pg_catalog.pg_attribute a ON (ct.oid = a.attrelid) "
+ + " JOIN pg_catalog.pg_namespace n ON (ct.relnamespace = n.oid) "
+ + " JOIN pg_catalog.pg_index i ON ( a.attrelid = i.indrelid) "
+ + " JOIN pg_catalog.pg_class ci ON (ci.oid = i.indexrelid) "
+ + "WHERE true ";
+
+ if (schema != null && !schema.isEmpty()) {
+ sql += " AND n.nspname = " + escapeQuotes(schema);
+ }
+
+ if (table != null && !table.isEmpty()) {
+ sql += " AND ct.relname = " + escapeQuotes(table);
+ }
+
+ sql += " AND (i.indisprimary or i.indisunique) ";
+ sql = "SELECT "
+ + " result.TABLE_CAT, "
+ + " result.TABLE_SCHEM, "
+ + " result.TABLE_NAME, "
+ + " result.COLUMN_NAME, "
+ + " result.KEY_SEQ, "
+ + " result.PK_NAME "
+ + "FROM "
+ + " (" + sql + " ) result"
+ + " where "
+ + " result.A_ATTNUM = (result.KEYS).x ";
+ sql += " ORDER BY result.table_name, result.pk_name, result.key_seq";
+
+ return createMetaDataStatement().executeQuery(sql);
+ }
+
/**
* @param primaryCatalog primary catalog
* @param primarySchema primary schema
@@ -2623,10 +2668,10 @@ public class PgDatabaseMetaData implements DatabaseMetaData {
+ "as remarks, CASE WHEN t.typtype = 'd' then (select CASE";
StringBuilder sqlwhen = new StringBuilder();
- for (Iterator<String> i = connection.getTypeInfo().getPGTypeNamesWithSQLTypes(); i.hasNext(); ) {
- String pgType = i.next();
- int sqlType = connection.getTypeInfo().getSQLType(pgType);
- sqlwhen.append(" when typname = ").append(escapeQuotes(pgType)).append(" then ").append(sqlType);
+ for (Iterator<Integer> i = connection.getTypeInfo().getPGTypeOidsWithSQLTypes(); i.hasNext(); ) {
+ Integer typOid = i.next();
+ int sqlType = connection.getTypeInfo().getSQLType(typOid);
+ sqlwhen.append(" when t.oid = ").append(typOid).append(" then ").append(sqlType);
}
sql += sqlwhen.toString();
=====================================
src/main/java/org/postgresql/jdbc/PgResultSet.java
=====================================
@@ -1357,7 +1357,12 @@ public class PgResultSet implements ResultSet, org.postgresql.PGRefCursorResultS
PgResultSet rs = (PgResultSet) selectStatement.executeQuery();
if (rs.next()) {
- rowBuffer = rs.thisRow;
+ // we know that the row is updatable as it was tested above.
+ if ( rs.thisRow == null ) {
+ rowBuffer = null;
+ } else {
+ rowBuffer = castNonNull(rs.thisRow).updateableCopy();
+ }
}
castNonNull(rows).set(currentRow, castNonNull(rowBuffer));
@@ -1618,7 +1623,7 @@ public class PgResultSet implements ResultSet, org.postgresql.PGRefCursorResultS
/* @Nullable */ String[] s = quotelessTableName(castNonNull(tableName));
String quotelessTableName = castNonNull(s[0]);
/* @Nullable */ String quotelessSchemaName = s[1];
- java.sql.ResultSet rs = connection.getMetaData().getPrimaryKeys("",
+ java.sql.ResultSet rs = ((PgDatabaseMetaData)connection.getMetaData()).getPrimaryUniqueKeys("",
quotelessSchemaName, quotelessTableName);
while (rs.next()) {
=====================================
src/main/java/org/postgresql/jdbc/TypeInfoCache.java
=====================================
@@ -38,6 +38,8 @@ public class TypeInfoCache implements TypeInfo {
// pgname (String) -> java.sql.Types (Integer)
private Map<String, Integer> pgNameToSQLType;
+ private Map<Integer, Integer> oidToSQLType;
+
// pgname (String) -> java class name (String)
// ie "text" -> "java.lang.String"
private Map<String, String> pgNameToJavaClass;
@@ -134,6 +136,7 @@ public class TypeInfoCache implements TypeInfo {
// needs to be synchronized because the iterator is returned
// from getPGTypeNamesWithSQLTypes()
pgNameToSQLType = Collections.synchronizedMap(new HashMap<String, Integer>((int) Math.round(types.length * 1.5)));
+ oidToSQLType = Collections.synchronizedMap(new HashMap<Integer, Integer>((int) Math.round(types.length * 1.5)));
for (Object[] type : types) {
String pgTypeName = (String) type[0];
@@ -155,6 +158,7 @@ public class TypeInfoCache implements TypeInfo {
oidToPgName.put(oid, pgTypeName);
pgArrayToPgType.put(arrayOid, oid);
pgNameToSQLType.put(pgTypeName, sqlType);
+ oidToSQLType.put(oid, sqlType);
// Currently we hardcode all core types array delimiter
// to a comma. In a stock install the only exception is
@@ -167,6 +171,7 @@ public class TypeInfoCache implements TypeInfo {
String pgArrayTypeName = pgTypeName + "[]";
pgNameToJavaClass.put(pgArrayTypeName, "java.sql.Array");
pgNameToSQLType.put(pgArrayTypeName, Types.ARRAY);
+ oidToSQLType.put(arrayOid, Types.ARRAY);
pgNameToOid.put(pgArrayTypeName, arrayOid);
pgArrayTypeName = "_" + pgTypeName;
if (!pgNameToJavaClass.containsKey(pgArrayTypeName)) {
@@ -187,7 +192,11 @@ public class TypeInfoCache implements TypeInfo {
return pgNameToSQLType.keySet().iterator();
}
- private String getSQLTypeQuery(boolean typnameParam) {
+ public Iterator<Integer> getPGTypeOidsWithSQLTypes() {
+ return oidToSQLType.keySet().iterator();
+ }
+
+ private String getSQLTypeQuery(boolean typoidParam) {
// There's no great way of telling what's an array type.
// People can name their own types starting with _.
// Other types use typelem that aren't actually arrays, like box.
@@ -198,7 +207,7 @@ public class TypeInfoCache implements TypeInfo {
// (keeping old behaviour of finding types, that should not be found without correct search
// path)
StringBuilder sql = new StringBuilder();
- sql.append("SELECT typinput='array_in'::regproc as is_array, typtype, typname ");
+ sql.append("SELECT typinput='array_in'::regproc as is_array, typtype, typname, pg_type.oid ");
sql.append(" FROM pg_catalog.pg_type ");
sql.append(" LEFT JOIN (select ns.oid as nspoid, ns.nspname, r.r ");
sql.append(" from pg_namespace as ns ");
@@ -208,8 +217,8 @@ public class TypeInfoCache implements TypeInfo {
sql.append(" using ( nspname ) ");
sql.append(" ) as sp ");
sql.append(" ON sp.nspoid = typnamespace ");
- if (typnameParam) {
- sql.append(" WHERE typname = ? ");
+ if (typoidParam) {
+ sql.append(" WHERE pg_type.oid = ? ");
}
sql.append(" ORDER BY sp.r, pg_type.oid DESC;");
return sql.toString();
@@ -258,14 +267,15 @@ public class TypeInfoCache implements TypeInfo {
if (!pgNameToSQLType.containsKey(typeName)) {
pgNameToSQLType.put(typeName, type);
}
+
+ Integer typeOid = castNonNull(rs.getInt("oid"));
+ if (!oidToSQLType.containsKey(typeOid)) {
+ oidToSQLType.put(typeOid, type);
+ }
}
rs.close();
}
- public int getSQLType(int oid) throws SQLException {
- return getSQLType(castNonNull(getPGType(oid)));
- }
-
private PreparedStatement prepareGetTypeInfoStatement() throws SQLException {
PreparedStatement getTypeInfoStatement = this.getTypeInfoStatement;
if (getTypeInfoStatement == null) {
@@ -276,19 +286,24 @@ public class TypeInfoCache implements TypeInfo {
}
public synchronized int getSQLType(String pgTypeName) throws SQLException {
- if (pgTypeName.endsWith("[]")) {
- return Types.ARRAY;
+ return getSQLType(castNonNull(getPGType(pgTypeName)));
+ }
+
+ public synchronized int getSQLType(int typeOid) throws SQLException {
+ if (typeOid == Oid.UNSPECIFIED) {
+ return Types.OTHER;
}
- Integer i = pgNameToSQLType.get(pgTypeName);
+
+ Integer i = oidToSQLType.get(typeOid);
if (i != null) {
return i;
}
- LOGGER.log(Level.FINEST, "querying SQL typecode for pg type '{0}'", pgTypeName);
+ LOGGER.log(Level.FINEST, "querying SQL typecode for pg type oid '{0}'", typeOid);
PreparedStatement getTypeInfoStatement = prepareGetTypeInfoStatement();
- getTypeInfoStatement.setString(1, pgTypeName);
+ getTypeInfoStatement.setInt(1, typeOid);
// Go through BaseStatement to avoid transaction start.
if (!((BaseStatement) getTypeInfoStatement)
@@ -298,14 +313,14 @@ public class TypeInfoCache implements TypeInfo {
ResultSet rs = castNonNull(getTypeInfoStatement.getResultSet());
- int type = Types.OTHER;
+ int sqlType = Types.OTHER;
if (rs.next()) {
- type = getSQLTypeFromQueryResult(rs);
+ sqlType = getSQLTypeFromQueryResult(rs);
}
rs.close();
- pgNameToSQLType.put(pgTypeName, type);
- return type;
+ oidToSQLType.put(typeOid, sqlType);
+ return sqlType;
}
private PreparedStatement getOidStatement(String pgTypeName) throws SQLException {
=====================================
src/main/java/org/postgresql/util/DriverInfo.java
=====================================
@@ -16,13 +16,13 @@ public final class DriverInfo {
// Driver name
public static final String DRIVER_NAME = "PostgreSQL JDBC Driver";
public static final String DRIVER_SHORT_NAME = "PgJDBC";
- public static final String DRIVER_VERSION = "42.2.22";
+ public static final String DRIVER_VERSION = "42.2.23";
public static final String DRIVER_FULL_NAME = DRIVER_NAME + " " + DRIVER_VERSION;
// Driver version
public static final int MAJOR_VERSION = 42;
public static final int MINOR_VERSION = 2;
- public static final int PATCH_VERSION = 22;
+ public static final int PATCH_VERSION = 23;
// JDBC specification
public static final String JDBC_VERSION = "4.2";
=====================================
src/main/resources/META-INF/MANIFEST.MF
=====================================
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Implementation-Title: PostgreSQL JDBC Driver
Bundle-License: BSD-2-Clause
Automatic-Module-Name: org.postgresql.jdbc
-Implementation-Version: 42.2.22
+Implementation-Version: 42.2.23
Specification-Vendor: Oracle Corporation
Specification-Title: JDBC
Implementation-Vendor-Id: org.postgresql
=====================================
src/test/java/org/postgresql/test/jdbc2/DatabaseMetaDataTest.java
=====================================
@@ -73,6 +73,7 @@ public class DatabaseMetaDataTest {
}
TestUtil.createTable(con, "metadatatest",
"id int4, name text, updated timestamptz, colour text, quest text");
+ TestUtil.createTable(con, "precision_test", "implicit_precision numeric");
TestUtil.dropSequence(con, "sercoltest_b_seq");
TestUtil.dropSequence(con, "sercoltest_c_seq");
TestUtil.createTable(con, "sercoltest", "a int, b serial, c bigserial");
@@ -130,6 +131,7 @@ public class DatabaseMetaDataTest {
TestUtil.dropTable(con, "sercoltest");
TestUtil.dropSequence(con, "sercoltest_b_seq");
TestUtil.dropSequence(con, "sercoltest_c_seq");
+ TestUtil.dropTable(con, "precision_test");
TestUtil.dropTable(con, "\"a\\\"");
TestUtil.dropTable(con, "\"a'\"");
TestUtil.dropTable(con, "arraytable");
@@ -495,6 +497,16 @@ public class DatabaseMetaDataTest {
TestUtil.closeDB(con1);
}
+ @Test
+ public void testNumericPrecision() throws SQLException {
+ DatabaseMetaData dbmd = con.getMetaData();
+ assertNotNull(dbmd);
+ ResultSet rs = dbmd.getColumns(null, "public", "precision_test", "%");
+ assertTrue("It should have a row for the first column", rs.next());
+ assertEquals("The column size should be zero", 0, rs.getInt("COLUMN_SIZE"));
+ assertFalse("It should have a single column", rs.next());
+ }
+
@Test
public void testColumns() throws SQLException {
// At the moment just test that no exceptions are thrown KJ
=====================================
src/test/java/org/postgresql/test/jdbc2/UpdateableResultTest.java
=====================================
@@ -56,6 +56,8 @@ public class UpdateableResultTest extends BaseTest4 {
// put some dummy data into second
st2.execute("insert into second values (1,'anyvalue' )");
st2.close();
+ TestUtil.createTable(con, "uniqueconstraint", "u1 int unique, name1 text");
+ TestUtil.execute("insert into uniqueconstraint values (1, 'dave')", con);
}
@@ -68,6 +70,7 @@ public class UpdateableResultTest extends BaseTest4 {
TestUtil.dropTable(con, "stream");
TestUtil.dropTable(con, "nopkmulticol");
TestUtil.dropTable(con, "booltable");
+ TestUtil.dropTable(con, "uniqueconstraint");
super.tearDown();
}
@@ -444,6 +447,26 @@ public class UpdateableResultTest extends BaseTest4 {
st.close();
}
+ @Test
+ public void test2193() throws Exception {
+ Statement st =
+ con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
+ ResultSet rs = st.executeQuery("select * from updateable");
+ assertNotNull(rs);
+ rs.moveToInsertRow();
+ rs.updateInt(1, 1);
+ rs.updateString(2, "jake");
+ rs.updateString(3, "avalue");
+ rs.insertRow();
+ rs.first();
+
+ rs.updateString(2, "bob");
+ rs.updateRow();
+ rs.refreshRow();
+ rs.updateString(2, "jake");
+ rs.updateRow();
+ }
+
@Test
public void testInsertRowIllegalMethods() throws Exception {
Statement st =
@@ -703,4 +726,16 @@ public class UpdateableResultTest extends BaseTest4 {
rs.close();
st.close();
}
+
+ @Test
+ public void testUniqueUpdatable() throws Exception {
+ Statement st = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
+ ResultSet.CONCUR_UPDATABLE);
+ ResultSet rs = st.executeQuery("SELECT * from uniqueconstraint");
+ assertTrue(rs.next());
+ assertTrue(rs.first());
+ rs.updateString("name1", "bob");
+ rs.close();
+ st.close();
+ }
}
=====================================
src/test/java/org/postgresql/test/jdbc3/TestCommitError.java deleted
=====================================
@@ -1,33 +0,0 @@
-package org.postgresql.test.jdbc3;
-
-import org.postgresql.test.jdbc2.BaseTest4;
-
-import org.junit.Test;
-
-import java.sql.SQLException;
-import java.sql.Statement;
-
-public class TestCommitError extends BaseTest4 {
-
- @Test
- public void testCommitError() throws SQLException {
- Statement stmt = con.createStatement();
-
- con.setAutoCommit(false);
- try {
- stmt.executeQuery("select * from sometablethatdoesnotexist");
- } catch (Exception ex ) {
- // ignore it
- }
-
- try {
- con.commit();
- } catch (Exception ex ){
- System.err.printf("exception thrown %s\n", ex.getMessage());
- System.exit(0);
- }
- System.err.println("Should not get here");
-
-
- }
-}
=====================================
src/test/java/org/postgresql/test/jdbc42/DatabaseMetaDataTest.java
=====================================
@@ -18,6 +18,7 @@ import org.junit.Test;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.ResultSet;
+import java.sql.Types;
public class DatabaseMetaDataTest {
@@ -26,12 +27,22 @@ public class DatabaseMetaDataTest {
@Before
public void setUp() throws Exception {
conn = TestUtil.openDB();
+ TestUtil.createSchema(conn, "test_schema");
+ TestUtil.createEnumType(conn, "test_schema.test_enum", "'val'");
+ TestUtil.createTable(conn, "test_schema.off_path_table", "var test_schema.test_enum[]");
+ TestUtil.createEnumType(conn, "_test_enum", "'evil'");
+ TestUtil.createEnumType(conn, "test_enum", "'other'");
+ TestUtil.createTable(conn, "on_path_table", "a test_schema.test_enum[], b _test_enum, c test_enum[]");
TestUtil.createTable(conn, "decimaltest", "a decimal, b decimal(10, 5)");
}
@After
public void tearDown() throws Exception {
TestUtil.dropTable(conn, "decimaltest");
+ TestUtil.dropTable(conn, "on_path_table");
+ TestUtil.dropType(conn, "test_enum");
+ TestUtil.dropType(conn, "_test_enum");
+ TestUtil.dropSchema(conn, "test_schema");
TestUtil.closeDB(conn);
}
@@ -52,4 +63,43 @@ public class DatabaseMetaDataTest {
assertTrue(!rs.next());
}
+
+ @Test
+ public void testGetCorrectSQLTypeForOffPathTypes() throws Exception {
+ DatabaseMetaData dbmd = conn.getMetaData();
+
+ ResultSet rs = dbmd.getColumns("%", "%", "off_path_table", "%");
+ assertTrue(rs.next());
+ assertEquals("var", rs.getString("COLUMN_NAME"));
+ assertEquals("Detects correct off-path type name", "\"test_schema\".\"_test_enum\"", rs.getString("TYPE_NAME"));
+ assertEquals("Detects correct SQL type for off-path types", Types.ARRAY, rs.getInt("DATA_TYPE"));
+
+ assertFalse(rs.next());
+ }
+
+ @Test
+ public void testGetCorrectSQLTypeForShadowedTypes() throws Exception {
+ DatabaseMetaData dbmd = conn.getMetaData();
+
+ ResultSet rs = dbmd.getColumns("%", "%", "on_path_table", "%");
+
+ assertTrue(rs.next());
+ assertEquals("a", rs.getString("COLUMN_NAME"));
+ assertEquals("Correctly maps types from other schemas","\"test_schema\".\"_test_enum\"", rs.getString("TYPE_NAME"));
+ assertEquals(Types.ARRAY, rs.getInt("DATA_TYPE"));
+
+ assertTrue(rs.next());
+ assertEquals("b", rs.getString("COLUMN_NAME"));
+ // = TYPE _test_enum AS ENUM ('evil')
+ assertEquals( "_test_enum", rs.getString("TYPE_NAME"));
+ assertEquals(Types.VARCHAR, rs.getInt("DATA_TYPE"));
+
+ assertTrue(rs.next());
+ assertEquals("c", rs.getString("COLUMN_NAME"));
+ // = array of TYPE test_enum AS ENUM ('value')
+ assertEquals("Correctly detects shadowed array type name","___test_enum", rs.getString("TYPE_NAME"));
+ assertEquals("Correctly detects type of shadowed name", Types.ARRAY, rs.getInt("DATA_TYPE"));
+
+ assertFalse(rs.next());
+ }
}
View it on GitLab: https://salsa.debian.org/java-team/libpostgresql-jdbc-java/-/compare/07032436a6f0d744784c53540c0cc472d6f4d03c...f6e7654856e5623db01ff953e04c20d03902e10c
--
View it on GitLab: https://salsa.debian.org/java-team/libpostgresql-jdbc-java/-/compare/07032436a6f0d744784c53540c0cc472d6f4d03c...f6e7654856e5623db01ff953e04c20d03902e10c
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20210727/6f7a5549/attachment.htm>
More information about the pkg-java-commits
mailing list