pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Problem inserting with remote views in vfp
2+ messages / 2 participants
[nested] [flat]

* Problem inserting with remote views in vfp
@ 2006-04-21 21:28 Geoffrey Clements <geoff@electron.me.uk>
  0 siblings, 0 replies; 2+ messages in thread

From: Geoffrey Clements @ 2006-04-21 21:28 UTC (permalink / raw)
  To: pgsql-odbc

I'm in the process of converting a Visual FoxPro application from using local 
tables to using a postgresql backend on a Debian box with psqlODBC on Windows 
Xp.

I've set up the database server with the necessary tables containing test data 
and using a remote view in VFP I can browse and update data.  However when I 
insert a row into the view and try to commit the change to the server I get 
an error message saying that the null value for the primary key conflicts 
with the non-null constraint, however the data that I am inserting is 
non-null for the primary key.

Any help would be appreciated as I've run out of ideas on how to fix this.

-- 
Geoff                                           Registered Linux user 196308



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

* Re: Problem inserting with remote views in vfp
@ 2006-04-21 21:51 Benjamin Krajmalnik <kraj@illumen.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Benjamin Krajmalnik @ 2006-04-21 21:51 UTC (permalink / raw)
  To: Geoffrey Clements <geoff@electron.me.uk>; pgsql-odbc

I recommend that you turn logging on either on the ODBC side or on the server side, and see exactly what you are sending as a query.
Also, try to send the exact query you would be making from your applicatio via PSQL or pgAdmin and see the results.
Browsing a table is not fgoing to trigger a constraint.  This will happen only if you are inserting/updating/deleting rows.


-----Original Message-----
From: pgsql-odbc-owner@postgresql.org
[mailto:pgsql-odbc-owner@postgresql.org]On Behalf Of Geoffrey Clements
Sent: Friday, April 21, 2006 3:29 PM
To: pgsql-odbc@postgresql.org
Subject: [ODBC] Problem inserting with remote views in vfp


I'm in the process of converting a Visual FoxPro application from using local 
tables to using a postgresql backend on a Debian box with psqlODBC on Windows 
Xp.

I've set up the database server with the necessary tables containing test data 
and using a remote view in VFP I can browse and update data.  However when I 
insert a row into the view and try to commit the change to the server I get 
an error message saying that the null value for the primary key conflicts 
with the non-null constraint, however the data that I am inserting is 
non-null for the primary key.

Any help would be appreciated as I've run out of ideas on how to fix this.

-- 
Geoff                                           Registered Linux user 196308

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings



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


end of thread, other threads:[~2006-04-21 21:51 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-04-21 21:28 Problem inserting with remote views in vfp Geoffrey Clements <geoff@electron.me.uk>
2006-04-21 21:51 Re: Problem inserting with remote views in vfp Benjamin Krajmalnik <kraj@illumen.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