[libpostgresql-jdbc-java] 16/93: Base table more usefull than "" as basic table name
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Mon Jan 9 10:18:47 UTC 2017
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to annotated tag REL9_3_1102
in repository libpostgresql-jdbc-java.
commit 2bcb5bd17e872d94056d5f338468ef2fdaca36b0
Author: cchantep <chantepie at altern.org>
Date: Thu Dec 12 15:54:55 2013 +0100
Base table more usefull than "" as basic table name
---
org/postgresql/jdbc2/AbstractJdbc2ResultSetMetaData.java | 3 ++-
org/postgresql/test/jdbc2/ResultSetMetaDataTest.java | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/org/postgresql/jdbc2/AbstractJdbc2ResultSetMetaData.java b/org/postgresql/jdbc2/AbstractJdbc2ResultSetMetaData.java
index 3f84c41..c4adf02 100644
--- a/org/postgresql/jdbc2/AbstractJdbc2ResultSetMetaData.java
+++ b/org/postgresql/jdbc2/AbstractJdbc2ResultSetMetaData.java
@@ -294,10 +294,11 @@ public abstract class AbstractJdbc2ResultSetMetaData implements PGResultSetMetaD
* @param column the first column is 1, the second is 2...
* @return column name, or "" if not applicable
* @exception SQLException if a database access error occurs
+ * @see #getBaseTableName
*/
public String getTableName(int column) throws SQLException
{
- return "";
+ return getBaseTableName(column);
}
public String getBaseTableName(int column) throws SQLException
diff --git a/org/postgresql/test/jdbc2/ResultSetMetaDataTest.java b/org/postgresql/test/jdbc2/ResultSetMetaDataTest.java
index dda0843..666b6c3 100644
--- a/org/postgresql/test/jdbc2/ResultSetMetaDataTest.java
+++ b/org/postgresql/test/jdbc2/ResultSetMetaDataTest.java
@@ -100,7 +100,7 @@ public class ResultSetMetaDataTest extends TestCase
assertEquals("", pgrsmd.getBaseSchemaName(4));
}
- assertEquals("", rsmd.getTableName(1));
+ assertEquals("rsmd1", rsmd.getTableName(1));
assertEquals("", rsmd.getTableName(4));
if (TestUtil.isProtocolVersion(conn, 3))
{
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libpostgresql-jdbc-java.git
More information about the pkg-java-commits
mailing list