pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Some troubles with Access and bool
5+ messages / 2 participants
[nested] [flat]

* Some troubles with Access and bool
@ 2004-10-12 20:27  Jean-Max Reymond <jmreymond@gmail.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Jean-Max Reymond @ 2004-10-12 20:27 UTC (permalink / raw)
  To: pgsql-odbc

I have a small table in my 7.4 Postgres database:

CREATE TABLE jmbool
(
  icompt int4,
  mybool bool
) 
WITHOUT OIDS;

I have MS Access 2003. My ODBC Driver a the option "treats bool as
char" unchecked.
IN MS Access, I can add a record but it not possible to delete any record:
error message: The Microsoft Jet database engine stopped the process
because you and another user are attempting to change the same data at
the same time.

Of course, I am alone on the Postgres database.
How to solve this blocking issue ?
Thanks for your answers.

-- 
Jean-Max Reymond
CKR Solutions
http://www.ckr-solutions.com



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

* Some troubles with Access and bool
@ 2004-10-12 20:32  Jean-Max Reymond <jmreymond@gmail.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Jean-Max Reymond @ 2004-10-12 20:32 UTC (permalink / raw)
  To: pgsql-odbc

I have a small table in my 7.4 Postgres database:

CREATE TABLE jmbool
(
 icompt int4,
 mybool bool
)
WITHOUT OIDS;

I have MS Access 2003. My ODBC Driver a the option "treats bool as
char" unchecked.
IN MS Access, I can add a record but it not possible to delete any record:
error message: The Microsoft Jet database engine stopped the process
because you and another user are attempting to change the same data at
the same time.

Of course, I am alone on the Postgres database.
How to solve this blocking issue ?
Thanks for your answers.



-- 
Jean-Max Reymond
CKR Solutions
http://www.ckr-solutions.com



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

* Re: [Maybe Spam] Some troubles with Access and bool
@ 2004-10-13 13:17  Greg Campbell <greg.campbell@us.michelin.com>
  parent: Jean-Max Reymond <jmreymond@gmail.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Greg Campbell @ 2004-10-13 13:17 UTC (permalink / raw)
  To: Jean-Max Reymond <jmreymond@gmail.com>; +Cc: pgsql-odbc

DSN ODBC Driver options
Page 2 - check row versioning

Jean-Max Reymond wrote:

>I have a small table in my 7.4 Postgres database:
>
>CREATE TABLE jmbool
>(
> icompt int4,
> mybool bool
>)
>WITHOUT OIDS;
>
>I have MS Access 2003. My ODBC Driver a the option "treats bool as
>char" unchecked.
>IN MS Access, I can add a record but it not possible to delete any record:
>error message: The Microsoft Jet database engine stopped the process
>because you and another user are attempting to change the same data at
>the same time.
>
>Of course, I am alone on the Postgres database.
>How to solve this blocking issue ?
>Thanks for your answers.
>
>
>
>  
>

Attachments:

greg.campbell.vcf (text/x-vcard, 281B) download begin:vcard fn:Greg Campbell n:Campbell;Greg org:Michelin North America;ENG-IT adr;dom:;;2420 Two Notch Road;Lexington;SC;29071 email;internet:greg.campbell@us.michelin.com title:Systems Engineer tel;work:803-951-5561 tel;fax:803-951-5531 x-mozilla-html:FALSE version:2.1 end:vcard
^ permalink raw reply [nested|flat] 5+ messages in thread

* Re: [Maybe Spam] Some troubles with Access and bool
@ 2004-10-14 02:04  Jean-Max Reymond <jmreymond@gmail.com>
  parent: Greg Campbell <greg.campbell@us.michelin.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Jean-Max Reymond @ 2004-10-14 02:04 UTC (permalink / raw)
  To: pgsql-odbc

On Wed, 13 Oct 2004 09:17:13 -0400, Greg Campbell
<greg.campbell@us.michelin.com> wrote:
> DSN ODBC Driver options
> Page 2 - check row versioning

now, it is checked but same issue.
I have set the driver trace  on but not helpful for me :-( 

-- 
Jean-Max Reymond
CKR Solutions
http://www.ckr-solutions.com



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

* Re: [Maybe Spam] Some troubles with Access and bool
@ 2004-10-14 17:00  Jean-Max Reymond <jmreymond@gmail.com>
  parent: Jean-Max Reymond <jmreymond@gmail.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Jean-Max Reymond @ 2004-10-14 17:00 UTC (permalink / raw)
  To: pgsql-odbc

On Thu, 14 Oct 2004 04:04:27 +0200, Jean-Max Reymond
<jmreymond@gmail.com> wrote:
> On Wed, 13 Oct 2004 09:17:13 -0400, Greg Campbell
> <greg.campbell@us.michelin.com> wrote:
> > DSN ODBC Driver options
> > Page 2 - check row versioning
> 
> now, it is checked but same issue.
> I have set the driver trace  on but not helpful for me :-(

Yeah, my problem is solved :-) 
With the help of the odbc file log, I have got the request sent to the
Postgres database.
So, the request is:
DELETE from jmbool where  icompt=23 and mybool='0';
but unfortunatly, value of mybool was null and not false because never
initalized.

Access read a value null for a bool type and interprets as false.
the DELETE was denied because not succesfull and Acess says that
another user has changed the record !!!!
Now, the field myboll has a default value as false, all the database
is upgraded  and all works fine :-)

-- 
Jean-Max Reymond
CKR Solutions
http://www.ckr-solutions.com



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


end of thread, other threads:[~2004-10-14 17:00 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-10-12 20:27 Some troubles with Access and bool Jean-Max Reymond <jmreymond@gmail.com>
2004-10-12 20:32 Some troubles with Access and bool Jean-Max Reymond <jmreymond@gmail.com>
2004-10-13 13:17 ` Greg Campbell <greg.campbell@us.michelin.com>
2004-10-14 02:04   ` Jean-Max Reymond <jmreymond@gmail.com>
2004-10-14 17:00     ` Jean-Max Reymond <jmreymond@gmail.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