Re: Get a table name

Поиск
Список
Период
Сортировка
От Maciek Sakrejda
Тема Re: Get a table name
Дата
Msg-id 895e58dd0912271412hbf14159w8b2d71600f098bc0@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Get a table name  (Filip Rembiałkowski <filip.rembialkowski@gmail.com>)
Ответы Re: Get a table name  (Oliver Jowett <oliver@opencloud.com>)
Список pgsql-jdbc
>In general, no. That's because resultset columns can be "entangled" in more complex way than "column a of table b".

Actually, this *is* defined at the protocol level:

From the RowDescription message at
http://developer.postgresql.org/pgdocs/postgres/protocol-message-formats.html
:
...

Then, for each field, there is the following:

String

    The field name.
Int32

    If the field can be identified as a column of a specific table,
the object ID of the table; otherwise zero.

...

No idea whether JDBC exposes this or whether the server actually sends
the correct oids, or if this is just part of the protocol as a
future-proofing attempt.

---
Maciek Sakrejda | Software Engineer | Truviso

1065 E. Hillsdale Blvd., Suite 230
Foster City, CA 94404
(650) 242-3500 Main
(650) 242-3501 F
www.truviso.com

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

Предыдущее
От: Filip Rembiałkowski
Дата:
Сообщение: Re: Get a table name
Следующее
От: Oliver Jowett
Дата:
Сообщение: Re: Get a table name