Re: ResultSetMetaData.getTableName() == null

Поиск
Список
Период
Сортировка
От Dave Cramer
Тема Re: ResultSetMetaData.getTableName() == null
Дата
Msg-id C8348F88-E127-4C83-8948-D43AC91C6B60@fastcrypt.com
обсуждение исходный текст
Ответ на Re: ResultSetMetaData.getTableName() == null  (Markus Schaber <schabi@logix-tt.com>)
Список pgsql-jdbc
On 22-Sep-06, at 9:23 AM, Markus Schaber wrote:

> 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.
Certainly parsing the SQL is expensive, however I would like to see
the server extend the protocol to give us this information.

Dave
>
> 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
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
>        subscribe-nomail command to majordomo@postgresql.org so that
> your
>        message can get through to the mailing list cleanly
>


В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Markus Schaber
Дата:
Сообщение: Re: ResultSetMetaData.getTableName() == null
Следующее
От: Tore Halset
Дата:
Сообщение: the good old getObject() issue..