Re: Re: more odbc patches

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Max Khon <fjoe(at)iclub(dot)nsu(dot)ru>
Cc: PostgreSQL odbc list <pgsql-odbc(at)postgresql(dot)org>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Re: more odbc patches
Date: 2001-01-23 20:32:35
Message-ID: 200101232032.PAA00854@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces pgsql-odbc pgsql-patches

I have applied the following diff to ODBC to fix the problem, as
Constantin suggested. Would some ODBC folks please test this and make
sure it works?

> hi, there!
>
> how about this?
>
> --- cut here ---
> >From cs(at)plesk(dot)com Sat Dec 16 15:08:40 2000
> Date: Thu, 14 Dec 2000 17:00:43 +0600 (NOVT)
> From: Constantin S. Svintsoff <cs(at)plesk(dot)com>
> To: fjoe(at)iclub(dot)nsu(dot)ru
> Subject: Bug in SQLForeignKeys()
>
>
> Query used for checking foreign key triggers
> returns too many results when there're more than one foreign
> key in a table. It happens because only table's oid is used to
> link between pg_trigger with INSERT check and pg_trigger with
> UPDATE/DELETE check.
>
> I think there should be enough to add following conditions
> into WHERE clause of that query:
> AND pt.tgconstrname = pg_trigger.tgconstrname
> AND pt.tgconstrname = pg_trigger_1.tgconstrname
>
> /Constantin
> --- cut here ---
>
> /fjoe
>
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

Attachment Content-Type Size
unknown_filename text/plain 3.4 KB

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Bruce Momjian 2001-01-23 20:35:49 Re: Re: more odbc patches
Previous Message David Wall 2001-01-23 18:56:32 blobs and small binary objects

Browse pgsql-odbc by date

  From Date Subject
Next Message Bruce Momjian 2001-01-23 20:35:49 Re: Re: more odbc patches
Previous Message Bruce Momjian 2001-01-23 20:30:34 Re: Re: [HACKERS] ODBC Driver int8 Patch

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2001-01-23 20:35:49 Re: Re: more odbc patches
Previous Message Bruce Momjian 2001-01-23 20:30:34 Re: Re: [HACKERS] ODBC Driver int8 Patch