pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
SQLForeignKeys bugs
4+ messages / 2 participants
[nested] [flat]

* SQLForeignKeys bugs
@ 2006-08-17 11:00  Blake McBride <blake@mcbride.name>
  0 siblings, 1 reply; 4+ messages in thread

From: Blake McBride @ 2006-08-17 11:00 UTC (permalink / raw)
  To: pgsql-odbc; +Cc: David Moore <dmoore@arahant.com>; Ryan Kettrey <rkettrey@arahant.com>


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





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: SQLForeignKeys bugs
@ 2006-08-18 13:46  Hiroshi Inoue <inoue@tpf.co.jp>
  parent: Blake McBride <blake@mcbride.name>
  0 siblings, 1 reply; 4+ messages in thread

From: Hiroshi Inoue @ 2006-08-18 13:46 UTC (permalink / raw)
  To: Blake McBride <blake@mcbride.name>; +Cc: pgsql-odbc; David Moore <dmoore@arahant.com>; Ryan Kettrey <rkettrey@arahant.com>

Please try the dll at
   http://www.geocities.jp/inocchichichi/index.html .

regards,
Hiroshi Inoue

Blake McBride wrote:
> 
> 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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: SQLForeignKeys bugs
@ 2006-08-18 13:54  Hiroshi Inoue <inoue@tpf.co.jp>
  parent: Hiroshi Inoue <inoue@tpf.co.jp>
  0 siblings, 1 reply; 4+ messages in thread

From: Hiroshi Inoue @ 2006-08-18 13:54 UTC (permalink / raw)
  To: Blake McBride <blake@mcbride.name>; +Cc: pgsql-odbc; David Moore <dmoore@arahant.com>; Ryan Kettrey <rkettrey@arahant.com>

Hiroshi Inoue wrote:
> Please try the dll at
>   http://www.geocities.jp/inocchichichi/index.html .
Oops my mistake. The URL is
http://www.geocities.jp/inocchichichi/psqlodbc/index.html .

regards,
Hiroshi Inoue
>
> regards,
> Hiroshi Inoue
>
> Blake McBride wrote:
>>
>> 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
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
>       subscribe-nomail command to majordomo@postgresql.org so that your
>       message can get through to the mailing list cleanly
>
>




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: SQLForeignKeys bugs
@ 2006-08-18 21:10  Blake McBride <blake@mcbride.name>
  parent: Hiroshi Inoue <inoue@tpf.co.jp>
  0 siblings, 0 replies; 4+ messages in thread

From: Blake McBride @ 2006-08-18 21:10 UTC (permalink / raw)
  To: Hiroshi Inoue <inoue@tpf.co.jp>; +Cc: pgsql-odbc; David Moore <dmoore@arahant.com>; Ryan Kettrey <rkettrey@arahant.com>


Dear Hiroshi Inoue,

The files in PSQLODBCA.ZIP did not help at all.

The files in PSQLODBC35W.ZIP fixed the DELETE_RULE problem
and the missing FK_NAME problems.  However, I still experience
duplicate records in the return set.

Thank you.

Blake McBride


At 08:54 AM 8/18/2006, Hiroshi Inoue wrote:
>Hiroshi Inoue wrote:
>>Please try the dll at
>>   http://www.geocities.jp/inocchichichi/index.html .
>Oops my mistake. The URL is
>http://www.geocities.jp/inocchichichi/psqlodbc/index.html .
>
>regards,
>Hiroshi Inoue
>>
>>regards,
>>Hiroshi Inoue
>>
>>Blake McBride wrote:
>>>
>>>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
>>
>>---------------------------(end of broadcast)---------------------------
>>TIP 1: if posting/reading through Usenet, please send an appropriate
>>       subscribe-nomail command to majordomo@postgresql.org so that your
>>       message can get through to the mailing list cleanly
>>
>
>

^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2006-08-18 21:10 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-08-17 11:00 SQLForeignKeys bugs Blake McBride <blake@mcbride.name>
2006-08-18 13:46 ` Hiroshi Inoue <inoue@tpf.co.jp>
2006-08-18 13:54   ` Hiroshi Inoue <inoue@tpf.co.jp>
2006-08-18 21:10     ` Blake McBride <blake@mcbride.name>

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