Re: ResultSetMetaData.getTableName() == null - Mailing list pgsql-jdbc

From Markus Schaber
Subject Re: ResultSetMetaData.getTableName() == null
Date
Msg-id 4513E3E5.5010502@logix-tt.com
Whole thread Raw
In response to Re: ResultSetMetaData.getTableName() == null  (Alex Stienstra <alex.stienstra@zonnet.nl>)
Responses Re: ResultSetMetaData.getTableName() == null  (Dave Cramer <pg@fastcrypt.com>)
Re: ResultSetMetaData.getTableName() == null  ("Alex Stienstra" <Alex.Stienstra@zonnet.nl>)
List pgsql-jdbc
Hi, Alex,

Alex Stienstra wrote:
> MySQL returns the tablename if possible otherwise the alias. I find this
> an acceptable solution. Having at least a name one could query the meta
> system in other to determine whether it is a table name or not.

The problem is that PostgreSQL does not pass any information about
aliases down to the client.

So we have two possibilities to implement this feature: Hack up the
server to provide that additional info, or implement a fully-fledged SQL
parser in the client and get the alias names ourselves.

Both seems not worth it currently.

HTH,
Markus
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in Europe! www.ffii.org
www.nosoftwarepatents.org

pgsql-jdbc by date:

Previous
From: Alex Stienstra
Date:
Subject: Re: ResultSetMetaData.getTableName() == null
Next
From: Dave Cramer
Date:
Subject: Re: ResultSetMetaData.getTableName() == null