Обсуждение: What is SQLForeignKeys in ODBC-Driver?

Поиск
Список
Период
Сортировка

What is SQLForeignKeys in ODBC-Driver?

От
Michael Contzen
Дата:
Hello,
I have a simple question: In technical information about the ODBC-driver you can find the following:

---------------------
Database protocols supported:   Postgres 6.2, 6.3, 6.4 (configurable by datasource)
  ...
Extensions*:
SQLExtendedFetch**
SQLPrimaryKeys**
SQLForeignKeys**

   ...
**  see FAQ for additional information.
  ------------------------

The FAQ doesn't tell anything about this. I have looked into the source-code an found some code for foreign keys.
Is  the a way to use foreign keys over an ODBC-link?
Kind regards,

Michael Contzen

Dohle Systemberatung
Germany




Re: [INTERFACES] What is SQLForeignKeys in ODBC-Driver?

От
Byron Nikolaidis
Дата:

Michael Contzen wrote:

> Hello,
> I have a simple question: In technical information about the ODBC-driver you can find the following:
>
> ---------------------
> Database protocols supported:   Postgres 6.2, 6.3, 6.4 (configurable by datasource)
>   ...
> Extensions*:
> SQLExtendedFetch**
> SQLPrimaryKeys**
> SQLForeignKeys**
>
>    ...
> **  see FAQ for additional information.
>   ------------------------
>
> The FAQ doesn't tell anything about this. I have looked into the source-code an found some code for foreign keys.
> Is  the a way to use foreign keys over an ODBC-link?
> Kind regards,
>
>

Yes, the driver supports SQLForeignKeys.  The driver uses trigger information from the pg_trigger table to fill out
the result set.  That's why it says "see the FAQ", but I never got around to putting it in the FAQ.

Byron