X-Original-To: pgsql-odbc-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id CDC149FB3BA for ; Thu, 17 Aug 2006 08:11:15 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 18807-06 for ; Thu, 17 Aug 2006 11:11:11 +0000 (UTC) X-Greylist: delayed 00:11:25.480502 by SQLgrey- Received: from imf10aec.mail.bellsouth.net (imf10aec.mail.bellsouth.net [205.152.59.58]) by postgresql.org (Postfix) with ESMTP id 73BFC9FB276 for ; Thu, 17 Aug 2006 08:11:11 -0300 (ADT) Received: from ibm56aec.bellsouth.net ([74.241.129.68]) by imf16aec.mail.bellsouth.net with ESMTP id <20060817105943.XSQB28724.imf16aec.mail.bellsouth.net@ibm56aec.bellsouth.net> for ; Thu, 17 Aug 2006 06:59:43 -0400 Received: from h2.mcbride.name ([74.241.129.68]) by ibm56aec.bellsouth.net with ESMTP id <20060817105943.BQMM8074.ibm56aec.bellsouth.net@h2.mcbride.name>; Thu, 17 Aug 2006 06:59:43 -0400 Message-Id: <7.0.1.0.2.20060817053223.059800d8@mcbride.name> X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0 Date: Thu, 17 Aug 2006 06:00:09 -0500 To: pgsql-odbc@postgresql.org From: Blake McBride Subject: SQLForeignKeys bugs Cc: David Moore ,Ryan Kettrey Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.135 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200608/56 X-Sequence-Number: 8020 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