pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
OIDS column required with ODBC ?
9+ messages / 6 participants
[nested] [flat]

* OIDS column required with ODBC ?
@ 2004-09-20 14:28 Luc ROLLAND <luc@rolland-fr.com>
  0 siblings, 0 replies; 9+ messages in thread

From: Luc ROLLAND @ 2004-09-20 14:28 UTC (permalink / raw)
  To: pgsql-odbcl@postgresql.org

Hello !

I want to open a recordset using ODBC (07_03_0200) in MS-VB6 (SP6) on a PG table (7.4.3) created WITHOUT OIDS.
I receive an error message  : 'Colum ?id? doesn't exist !' the method Open ?

Would pgsqlODBC require an OIDS column on all the tables ?
I don't find setting for that in the ODBC driver...

Luc

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

* OIDS column required with ODBC ?
@ 2004-09-21 09:43 Secrétariat <ets.rolland@magic.fr>
  0 siblings, 0 replies; 9+ messages in thread

From: Secrétariat @ 2004-09-21 09:43 UTC (permalink / raw)
  To: pgsql-odbc



Hello !

I want to open a recordset using ODBC (07_03_0200) in MS-VB6 (SP6) on a PG table (7.4.3) created WITHOUT OIDS.
I receive an error message  : 'Colum ?id? doesn't exist !' the method Open ?

Would pgsqlODBC require an OIDS column on all the tables ?
I don't find setting for that in the ODBC driver...

Luc

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

* OIDS column required with ODBC ?
@ 2004-09-21 09:47 Luc ROLLAND <luc@rolland-fr.com>
  0 siblings, 0 replies; 9+ messages in thread

From: Luc ROLLAND @ 2004-09-21 09:47 UTC (permalink / raw)
  To: pgsql-odbc



Hello !

I want to open a recordset using ODBC (07_03_0200) in MS-VB6 (SP6) on a PG table (7.4.3) created WITHOUT OIDS.
I receive an error message  : 'Colum ?id? doesn't exist !' when I use the method Open ?
The same code works if the table has an OID column.

Would pgsqlODBC require an OIDS column on all the tables ?
I don't find setting for that in the ODBC driver...

Luc

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

* Re: OIDS column required with ODBC ?
@ 2004-09-21 09:57 Philippe Lang <philippe.lang@attiksystem.ch>
  2004-09-21 10:05 ` Re: OIDS column required with ODBC ? Luc ROLLAND <luc@rolland-fr.com>
  0 siblings, 1 reply; 9+ messages in thread

From: Philippe Lang @ 2004-09-21 09:57 UTC (permalink / raw)
  To: Luc ROLLAND <luc@rolland-fr.com>; pgsql-odbc

Hello,
 
No, you don't need to use OIDs with the ODBC driver. I alway create tables WITHOUT OIDS, and I can access them through ODBC with MS Access without any problem.

But I'm sorry I cannot tell you the reason of your error message...

Hope it will help you anyway.

Philippe

________________________________

De : pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-owner@postgresql.org] De la part de Luc ROLLAND
Envoyé : mardi, 21. septembre 2004 11:48
À : ODBC PostgreSQL
Objet : [ODBC] OIDS column required with ODBC ?



Hello !
 
I want to open a recordset using ODBC (07_03_0200) in MS-VB6 (SP6) on a PG table (7.4.3) created WITHOUT OIDS.
I receive an error message  : 'Colum ?id? doesn't exist !' when I use the method Open ?
The same code works if the table has an OID column.
 
Would pgsqlODBC require an OIDS column on all the tables ?
I don't find setting for that in the ODBC driver...
 
Luc





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

* Re: OIDS column required with ODBC ?
  2004-09-21 09:57 Re: OIDS column required with ODBC ? Philippe Lang <philippe.lang@attiksystem.ch>
@ 2004-09-21 10:05 ` Luc ROLLAND <luc@rolland-fr.com>
  2004-09-21 11:47   ` Re: OIDS column required with ODBC ? Shachar Shemesh <psql@shemesh.biz>
  0 siblings, 1 reply; 9+ messages in thread

From: Luc ROLLAND @ 2004-09-21 10:05 UTC (permalink / raw)
  To: pgsql-odbc

I use the Open Method from ADO in MS Visual-Basic 6.0 ...
Is there anybody who can explain to me why I can't open tables without OIDS 
?

Thanks.

Luc

----- Original Message ----- 
From: "Philippe Lang" <philippe.lang@attiksystem.ch>
To: "Luc ROLLAND" <luc@rolland-fr.com>; "ODBC PostgreSQL" 
<pgsql-odbc@postgresql.org>
Sent: Tuesday, September 21, 2004 11:57 AM
Subject: Re: [ODBC] OIDS column required with ODBC ?


Hello,

No, you don't need to use OIDs with the ODBC driver. I alway create tables 
WITHOUT OIDS, and I can access them through ODBC with MS Access without any 
problem.

But I'm sorry I cannot tell you the reason of your error message...

Hope it will help you anyway.

Philippe

________________________________

De : pgsql-odbc-owner@postgresql.org 
[mailto:pgsql-odbc-owner@postgresql.org] De la part de Luc ROLLAND
Envoyé : mardi, 21. septembre 2004 11:48
À : ODBC PostgreSQL
Objet : [ODBC] OIDS column required with ODBC ?



Hello !

I want to open a recordset using ODBC (07_03_0200) in MS-VB6 (SP6) on a PG 
table (7.4.3) created WITHOUT OIDS.
I receive an error message  : 'Colum ?id? doesn't exist !' when I use the 
method Open ?
The same code works if the table has an OID column.

Would pgsqlODBC require an OIDS column on all the tables ?
I don't find setting for that in the ODBC driver...

Luc



---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org




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

* Re: OIDS column required with ODBC ?
  2004-09-21 09:57 Re: OIDS column required with ODBC ? Philippe Lang <philippe.lang@attiksystem.ch>
  2004-09-21 10:05 ` Re: OIDS column required with ODBC ? Luc ROLLAND <luc@rolland-fr.com>
@ 2004-09-21 11:47   ` Shachar Shemesh <psql@shemesh.biz>
  2004-09-22 14:09     ` Re: OIDS column required with ODBC ? Secrétariat <ets@rolland-fr.com>
  0 siblings, 1 reply; 9+ messages in thread

From: Shachar Shemesh @ 2004-09-21 11:47 UTC (permalink / raw)
  To: Luc ROLLAND <luc@rolland-fr.com>; +Cc: pgsql-odbc

Luc ROLLAND wrote:

> I use the Open Method from ADO in MS Visual-Basic 6.0 ...
> Is there anybody who can explain to me why I can't open tables without 
> OIDS ?
>
> Thanks.
>
> Luc
>
Try defining the table as static readonly, and see if that helps.

                Shachar

-- 
Shachar Shemesh
Lingnu Open Source Consulting ltd.
http://www.lingnu.com/




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

* Re: OIDS column required with ODBC ?
  2004-09-21 09:57 Re: OIDS column required with ODBC ? Philippe Lang <philippe.lang@attiksystem.ch>
  2004-09-21 10:05 ` Re: OIDS column required with ODBC ? Luc ROLLAND <luc@rolland-fr.com>
  2004-09-21 11:47   ` Re: OIDS column required with ODBC ? Shachar Shemesh <psql@shemesh.biz>
@ 2004-09-22 14:09     ` Secrétariat <ets@rolland-fr.com>
  0 siblings, 0 replies; 9+ messages in thread

From: Secrétariat @ 2004-09-22 14:09 UTC (permalink / raw)
  To: pgsql-odbc

For information :
It's a cursor side problem !
By default MS-VB6 use "server side cursor" only alowing Open in "Static 
mode" with "Pessimistic Lock".
Setting "CursorLocation=adUseClient" use "client side cursor" alowing Open 
in "Dynamic mode" with "Optimistic Lock".
Hard work !...
Luc

>> I use the Open Method from ADO in MS Visual-Basic 6.0 ...
>> Is there anybody who can explain to me why I can't open tables without 
>> OIDS ?
>>
>> Thanks.
>>
>> Luc
>>
> Try defining the table as static readonly, and see if that helps.
>
>                Shachar
>
> -- 
> Shachar Shemesh
> Lingnu Open Source Consulting ltd.
> http://www.lingnu.com/
>
> 




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

* Re: OIDS column required with ODBC ?
@ 2004-09-21 18:41 Secrétariat <ets@rolland-fr.com>
  2004-09-27 08:23 ` Re: OIDS column required with ODBC ? Shachar Shemesh <shachar@lingnu.com>
  0 siblings, 1 reply; 9+ messages in thread

From: Secrétariat @ 2004-09-21 18:41 UTC (permalink / raw)
  To: pgsql-odbc

I use the Open Method from ADO in MS Visual-Basic 6.0 ...
Is there anybody who can explain to me why I can't open tables without OIDS 
?

 Thanks.

 Luc

> ----- Original Message ----- 
> From: "Philippe Lang" <philippe.lang@attiksystem.ch>
> To: "Luc ROLLAND" <luc@rolland-fr.com>; "ODBC PostgreSQL" 
> <pgsql-odbc@postgresql.org>
> Sent: Tuesday, September 21, 2004 11:57 AM
> Subject: Re: [ODBC] OIDS column required with ODBC ?
>
>
> Hello,
>
> No, you don't need to use OIDs with the ODBC driver. I alway create tables 
> WITHOUT OIDS, and I can access them through ODBC with MS Access without 
> any problem.
>
> But I'm sorry I cannot tell you the reason of your error message...
>
> Hope it will help you anyway.
>
> Philippe
>
> ________________________________
>
> De : pgsql-odbc-owner@postgresql.org 
> [mailto:pgsql-odbc-owner@postgresql.org] De la part de Luc ROLLAND
> Envoyé : mardi, 21. septembre 2004 11:48
> À : ODBC PostgreSQL
> Objet : [ODBC] OIDS column required with ODBC ?
>
>
>
> Hello !
>
> I want to open a recordset using ODBC (07_03_0200) in MS-VB6 (SP6) on a PG 
> table (7.4.3) created WITHOUT OIDS.
> I receive an error message  : 'Colum ?id? doesn't exist !' when I use the 
> method Open ?
> The same code works if the table has an OID column.
>
> Would pgsqlODBC require an OIDS column on all the tables ?
> I don't find setting for that in the ODBC driver...
>
> Luc
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
> 




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

* Re: OIDS column required with ODBC ?
  2004-09-21 18:41 Re: OIDS column required with ODBC ? Secrétariat <ets@rolland-fr.com>
@ 2004-09-27 08:23 ` Shachar Shemesh <shachar@lingnu.com>
  0 siblings, 0 replies; 9+ messages in thread

From: Shachar Shemesh @ 2004-09-27 08:23 UTC (permalink / raw)
  To: Secrétariat <ets@rolland-fr.com>; +Cc: pgsql-odbc

Secrétariat wrote:

> I use the Open Method from ADO in MS Visual-Basic 6.0 ...
> Is there anybody who can explain to me why I can't open tables without 
> OIDS ?
>
> Thanks.
>
> Luc

The ODBC driver is emulating updateable cursors by adding the xid and 
oid to each query. It can then identify each row in the result, and 
update it if requested. When you open a table that doesn't have oid, 
this open fails.

To work around this problem, you need to open your rows in a 
non-updateable mode, which will make ODBC not add the requirement for 
oid in the table, and solve the problem.

                Shachar

-- 
Shachar Shemesh
Lingnu Open Source Consulting ltd.
http://www.lingnu.com/




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


end of thread, other threads:[~2004-09-27 08:23 UTC | newest]

Thread overview: 9+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-09-20 14:28 OIDS column required with ODBC ? Luc ROLLAND <luc@rolland-fr.com>
2004-09-21 09:43 OIDS column required with ODBC ? Secrétariat <ets.rolland@magic.fr>
2004-09-21 09:47 OIDS column required with ODBC ? Luc ROLLAND <luc@rolland-fr.com>
2004-09-21 09:57 Re: OIDS column required with ODBC ? Philippe Lang <philippe.lang@attiksystem.ch>
2004-09-21 10:05 ` Luc ROLLAND <luc@rolland-fr.com>
2004-09-21 11:47   ` Shachar Shemesh <psql@shemesh.biz>
2004-09-22 14:09     ` Secrétariat <ets@rolland-fr.com>
2004-09-21 18:41 Re: OIDS column required with ODBC ? Secrétariat <ets@rolland-fr.com>
2004-09-27 08:23 ` Shachar Shemesh <shachar@lingnu.com>

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