X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id C082011F602F for ; Fri, 21 Apr 2006 18:29:37 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 required=5 tests=[none] Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id TQoWMDFVTCnI for ; Fri, 21 Apr 2006 18:28:54 -0300 (ADT) X-Greylist: delayed 00:13:22.877078 by SQLgrey- Received: from smtp.aaisp.net.uk (A.painless.aaisp.net.uk [81.187.81.51]) by postgresql.org (Postfix) with ESMTP id B522511F61CB for ; Fri, 21 Apr 2006 18:28:55 -0300 (ADT) Received: from [81.2.88.203] (helo=[81.2.88.203]) by smtp.aaisp.net.uk with esmtp (Exim 4.43) id 1FX3BP-00061d-Vd for pgsql-odbc@postgresql.org; Fri, 21 Apr 2006 22:28:56 +0100 From: Geoffrey Clements To: pgsql-odbc@postgresql.org Subject: Problem inserting with remote views in vfp Date: Fri, 21 Apr 2006 22:28:55 +0100 User-Agent: KMail/1.8.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200604212228.55600.geoff@electron.me.uk> X-Archive-Number: 200604/77 X-Sequence-Number: 7604 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