pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Lots of write errors with foreign key references :(
2+ messages / 2 participants
[nested] [flat]

* Lots of write errors with foreign key references :(
@ 2004-10-15 21:28 Mike Fahey <mfahey@enter.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Mike Fahey @ 2004-10-15 21:28 UTC (permalink / raw)
  To: pgsql-odbc


I'm using access 2003 and  snapshot 08.00.0001

When i try to do a simple insert query I get the error in access "write
conflict" this record has been changed by another user since....

Then the actual error from odbc is:

Error #7

Error: insert or update on table "category_products violates foreign key
constraint "$1"
(Source ODBC.database)

The query I'm trying to run works fine from a prompt.

Can someone look into this please?

Thanks






-- 
With best regards,

Mike Fahey - Systems Administration
********************************************************************
      ENTER.NET - "The Road to the Internet Starts Here!" (tm)
  (610) 437-2221 * http://www.enter.net/ * email:support@enter.net
********************************************************************





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

* Re: Lots of write errors with foreign key references :(
@ 2004-10-18 06:42 Philippe Lang <philippe.lang@attiksystem.ch>
  0 siblings, 0 replies; 2+ messages in thread

From: Philippe Lang @ 2004-10-18 06:42 UTC (permalink / raw)
  To: Mike Fahey <mfahey@enter.net>; pgsql-odbc

Hi,

How do you proceed when you insert data under Access 2003? Are you doing that programmatically? Or are you using the Access table view?

The only time when I get the same kind of error is when I modify data, which is again modified by a trigger under Postgresql. If I have listed the modified column (timestamp, for example) in the recordset, Access beleives there is a concurrent user that has modified the data. One solution is to take this column away from the recordset.

-----Message d'origine-----
De : pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-owner@postgresql.org] De la part de Mike Fahey
Envoyé : vendredi, 15. octobre 2004 23:28
À : pgsql-odbc@postgresql.org
Objet : [ODBC] Lots of write errors with foreign key references :(


I'm using access 2003 and  snapshot 08.00.0001

When i try to do a simple insert query I get the error in access "write conflict" this record has been changed by another user since....

Then the actual error from odbc is:

Error #7

Error: insert or update on table "category_products violates foreign key constraint "$1"
(Source ODBC.database)

The query I'm trying to run works fine from a prompt.

Can someone look into this please?

Thanks






--
With best regards,

Mike Fahey - Systems Administration
********************************************************************
      ENTER.NET - "The Road to the Internet Starts Here!" (tm)
  (610) 437-2221 * http://www.enter.net/ * email:support@enter.net
********************************************************************



---------------------------(end of broadcast)---------------------------
TIP 3: 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] 2+ messages in thread


end of thread, other threads:[~2004-10-18 06:42 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-10-15 21:28 Lots of write errors with foreign key references :( Mike Fahey <mfahey@enter.net>
2004-10-18 06:42 Re: Lots of write errors with foreign key references :( Philippe Lang <philippe.lang@attiksystem.ch>

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