X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9FA043A1ADF for ; Fri, 14 Jan 2005 16:21:09 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 84516-08 for ; Fri, 14 Jan 2005 16:21:01 +0000 (GMT) Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.250.190.2]) by svr1.postgresql.org (Postfix) with ESMTP id 5033E3A1AD7 for ; Fri, 14 Jan 2005 16:21:01 +0000 (GMT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 375EB31974; Fri, 14 Jan 2005 17:21:00 +0100 (MET) From: "Ben Trewern" X-Newsgroups: pgsql.interfaces.odbc Subject: Problems with Access XP and text primary keys Date: Fri, 14 Jan 2005 16:23:10 -0000 Organization: Hub.Org Networking Services Lines: 77 Message-ID: X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 To: pgsql-odbc@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.185 tagged_above=0 required=5 tests=PRIORITY_NO_NAME X-Spam-Level: * X-Archive-Number: 200501/27 X-Sequence-Number: 4822 I've been using Postgres 8.0rc5 with the pgsqlODBC 8.00.00.03 driver and am having some problems. The database works correctly for some time but suddenly and for no reason I can find I get #Deleted in some of the fields. These tables seem to be those which have text primary keys. I've looked at the psqlodbcXXXX.log and it seems that I get: conn=162845400, query='SELECT "mw"."users"."user_name" FROM "mw"."users" ' [ fetched 13 rows ] conn=162845400, query='SELECT "user_name","entered_ts","entered_user","last_changed","last_user","full_name","area_id","xmin" FROM "mw"."users" WHERE "user_name" = 'b' OR "user_name" = 'c' OR "user_name" = 'm' OR "user_name" = 'b' OR "user_name" = 'p' OR "user_name" = 't' OR "user_name" = 'j' OR "user_name" = 'r' OR "user_name" = 'f' OR "user_name" = 'j'' [ fetched 0 rows ] conn=162845400, query='SELECT "user_name","entered_ts","entered_user","last_changed","last_user","full_name","area_id","xmin" FROM "mw"."users" WHERE "user_name" = 'p' OR "user_name" = 'p' OR "user_name" = 'j' OR "user_name" = 'j' OR "user_name" = 'j' OR "user_name" = 'j' OR "user_name" = 'j' OR "user_name" = 'j' OR "user_name" = 'j' OR "user_name" = 'j'' [ fetched 0 rows ] instead of when working correctly: conn=170998744, query='SELECT "mw"."users"."user_name" FROM "mw"."users" ' [ fetched 13 rows ] conn=170998744, query='SELECT "user_name","entered_ts","entered_user","last_changed","last_user","full_name","area_id","xmin" FROM "mw"."users" WHERE "user_name" = 'btrewern' OR "user_name" = 'chappellj' OR "user_name" = 'mcwilliamsf' OR "user_name" = 'ben' OR "user_name" = 'postgres' OR "user_name" = 'timc' OR "user_name" = 'jasonc' OR "user_name" = 'robh' OR "user_name" = 'francism' OR "user_name" = 'janeh'' [ fetched 10 rows ] conn=170998744, query='SELECT "user_name","entered_ts","entered_user","last_changed","last_user","full_name","area_id","xmin" FROM "mw"."users" WHERE "user_name" = 'pons_temp' OR "user_name" = 'pauls' OR "user_name" = 'jeremyw' OR "user_name" = 'jeremyw' OR "user_name" = 'jeremyw' OR "user_name" = 'jeremyw' OR "user_name" = 'jeremyw' OR "user_name" = 'jeremyw' OR "user_name" = 'jeremyw' OR "user_name" = 'jeremyw'' [ fetched 3 rows ] The table "mw"."users" is created as: CREATE TABLE users ( user_name short_text_dom PRIMARY KEY, entered_ts timestamp DEFAULT ('now'::text)::timestamp(6) with time zone, entered_user short_text_dom DEFAULT "current_user"(), last_changed timestamp, last_user short_text_dom, full_name text, area_id int4 NOT NULL ); and "mw"."short_text_dom" is: CREATE DOMAIN short_text_dom AS varchar(250); Does anyone have any ideas? Regards, Ben Trewern