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 822DE11F8D56 for ; Fri, 21 Apr 2006 18:51:13 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: 0.208 X-Spam-Level: X-Spam-Status: No, score=0.208 required=5 tests=[AWL=0.208] Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 18lqeMUBLbox for ; Fri, 21 Apr 2006 18:51:07 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from stash.illumen.com (unknown [64.207.29.137]) by postgresql.org (Postfix) with ESMTP id 038B111F8D46 for ; Fri, 21 Apr 2006 18:51:09 -0300 (ADT) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Re: Problem inserting with remote views in vfp X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Fri, 21 Apr 2006 15:51:09 -0600 Message-ID: <8511B4970E0D124898E973DF496F9B43251595@stash.stackdump.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ODBC] Problem inserting with remote views in vfp Thread-Index: AcZlisdUcX+6VdNmSGO5n4o12QV5ywAArAGg From: "Benjamin Krajmalnik" To: "Geoffrey Clements" , X-Archive-Number: 200604/78 X-Sequence-Number: 7605 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=20 tables to using a postgresql backend on a Debian box with psqlODBC on = Windows=20 Xp. I've set up the database server with the necessary tables containing = test data=20 and using a remote view in VFP I can browse and update data. However = when I=20 insert a row into the view and try to commit the change to the server I = get=20 an error message saying that the null value for the primary key = conflicts=20 with the non-null constraint, however the data that I am inserting is=20 non-null for the primary key. Any help would be appreciated as I've run out of ideas on how to fix = this. --=20 Geoff Registered Linux user = 196308 ---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settings