Re: getTableName

Поиск
Список
Период
Сортировка
От Barry Lind
Тема Re: getTableName
Дата
Msg-id 3DFE4DB6.8060806@xythos.com
обсуждение исходный текст
Ответ на Re: getTableName  (Dror Matalon <dror@zapatec.com>)
Список pgsql-jdbc

Dror Matalon wrote:
>
> select a, b, c from foo, bar where foo.b = bar.d;
>
> I don't see any reason why the server shouldn't know that a and b came
> from foo and c came from bar. I agree though that there will be cases
> where the table is unknown.
>

The key here being that only the server can know this since the client
(jdbc in this case) can't get the information from simply parsing the
query string.  So this is a server enhancement request for the protocol
between the client and server.  There has been talk of changing the
protocol in 7.4.  So I would suggest that you take this request over to
the pgsql-hackers mail list for discussion there.  If the work were done
in the server to provide this information it will be easy to incorporate
it into the jdbc driver.

thanks,
--Barry





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

Предыдущее
От: Sagine E.Ferrus
Дата:
Сообщение: jdbc3
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: jdbc3