pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Blake McBride <blake@mcbride.name>
To: pgsql-odbc@postgresql.org
Cc: David Moore <dmoore@arahant.com>
Cc: Ryan Kettrey <rkettrey@arahant.com>
Subject: SQLForeignKeys bugs
Date: Thu, 17 Aug 2006 06:00:09 -0500
Message-ID: <7.0.1.0.2.20060817053223.059800d8@mcbride.name> (raw)


Greetings,

I am having a number of problems with SQLForeignKeys.
I have tried the PostgreSQL ODBC driver versions on
Windows XP Pro:

	8.01.01.02
	8.01.02.00
	8.02.00.02

I am using PostgreSQL 8.1.2 on the same machine.

The first problem is that the DELETE_RULE field is returning
SQL_CASCADE (0) when it should be
SQL_NO_ACTION(3).  In other words, the foreign key
does not have ON DELETE CASCADE yet SQLForeignKeys
return 0 in the DELETE_RULE field when it should be 3.

The second problem I noticed is that the result set returned
by SQLForeignKeys has duplicate records. This is wrong.

The third problem is that the FK_NAME field is always blank.
I need this.  (I haven't checked PK_NAME but I bet it's blank
too).

The project I am working on requires this data.

Thanks.

Blake McBride
blake@mcbride.name





view thread (4+ messages)  latest in thread

Message-ID: <7.0.1.0.2.20060817053223.059800d8@mcbride.name>
Permalink:  ../7.0.1.0.2.20060817053223.059800d8@mcbride.name/
Also on:    postgresql.org/message-id/7.0.1.0.2.20060817053223.059800d8@mcbride.name

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: blake@mcbride.name, dmoore@arahant.com, rkettrey@arahant.com
  Subject: Re: SQLForeignKeys bugs
  In-Reply-To: <7.0.1.0.2.20060817053223.059800d8@mcbride.name>
  References: <7.0.1.0.2.20060817053223.059800d8@mcbride.name>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox