X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 903DD11F61C2 for ; Wed, 26 Apr 2006 13:44:28 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 48421-09 for ; Wed, 26 Apr 2006 13:44:07 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from securetrans.mitrust.com (securetrans.mitrust.com [207.250.112.34]) by postgresql.org (Postfix) with ESMTP id 2FDAD11F60E7 for ; Wed, 26 Apr 2006 13:44:07 -0300 (ADT) Received: from [10.201.170.131] (tr2925.mi.micorp.com [10.201.170.131]) by securetrans.mitrust.com (Postfix) with ESMTP id 3F6FC7D809C for ; Wed, 26 Apr 2006 11:44:06 -0500 (CDT) Message-ID: <444FA356.2080706@amsoftwaredesign.com> Date: Wed, 26 Apr 2006 11:44:06 -0500 From: Tony Caduto User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Problem with the PGSQL-ODBC driver and MS Access Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.263 tagged_above=0 required=5 tests=AWL, BAYES_00, SPF_HELO_SOFTFAIL, SPF_SOFTFAIL X-Spam-Level: X-Archive-Number: 200604/107 X-Sequence-Number: 7634 Hi, I have a user who has been converting some data from access to a Postgresql 8.1.3 backend and we ran into a issue where some records would show up in Access with all the fields as #deleted The ODBC driver is the version from December 2005. In one instance they appeared scattered throughout the result set, and the last time they were all at the end. This table had a PK with 5 columns as the PK: CREATE TABLE ptr172.mf_accum_table_pg ( bank varchar(2) NOT NULL, cusip varchar(11) NOT NULL, secdesc varchar(37), side varchar(9) NOT NULL, agent varchar(4), fdaccount varchar(17), trans varchar(4), settledate timestamp NOT NULL, blockid varchar(12), cash double precision NOT NULL, rec_id serial NOT NULL, CONSTRAINT mf_accum_table_pg_pk PRIMARY KEY (bank,cusip,side,blockid,cash) )WITHOUT OIDS; If I change the PK to use the rec_id column and add a UNIQUE index as shown below, the #deleted rows in the access linked table disappear. I am unsure if this is a Access 97 issue or a bug in the ODBC driver. CREATE TABLE ptr172.mf_accum_table_pg ( bank varchar(2) NOT NULL, cusip varchar(11) NOT NULL, secdesc varchar(37), side varchar(9) NOT NULL, agent varchar(4), fdaccount varchar(17), trans varchar(4), settledate timestamp NOT NULL, blockid varchar(12), cash double precision NOT NULL, rec_id serial NOT NULL, CONSTRAINT mf_accum_table_pg_pk PRIMARY KEY (rec_id) )WITHOUT OIDS; -- Indexes CREATE UNIQUE INDEX mf_accum_table_pg_idx3 ON ptr172.mf_accum_table_pg USING btree (bank, cusip, side, settledate, cash); -- Tony Caduto AM Software Design http://www.amsoftwaredesign.com Home of PG Lightning Admin for Postgresql Your best bet for Postgresql Administration