X-Original-To: pgsql-odbc@postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id 1BE47926252 for ; Sun, 1 Jun 2003 19:48:31 -0400 (EDT) Received: from developer.postgresql.org ([64.117.224.193]) by localhost (developer.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 14695-01 for ; Sun, 1 Jun 2003 19:48:20 -0400 (EDT) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by developer.postgresql.org (Postfix) with SMTP id 93C0A926250 for ; Sun, 1 Jun 2003 19:48:19 -0400 (EDT) Received: (qmail 21629 invoked from network); 1 Jun 2003 23:48:18 -0000 Received: from unknown (HELO viscomail.tpf.co.jp) (100.0.0.108) by sd2.tpf-fw-c.co.jp with SMTP; 1 Jun 2003 23:48:18 -0000 Received: from tpf.co.jp ([126.0.1.64]) by viscomail.tpf.co.jp (8.8.8+Sun/8.8.8) with ESMTP id IAA02991; Mon, 2 Jun 2003 08:48:16 +0900 (JST) Message-ID: <3EDA91BF.B219BF5E@tpf.co.jp> Date: Mon, 02 Jun 2003 08:52:31 +0900 From: Hiroshi Inoue X-Mailer: Mozilla 4.73 [ja] (Windows NT 5.0; U) X-Accept-Language: ja MIME-Version: 1.0 To: Corrado Cavallini Cc: "'pgsql-odbc@postgresql.org'" Subject: Re: ODBC 07.03.0100 Incorrect mapping of Int8 fields in Access References: Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new X-Archive-Number: 200306/6 X-Sequence-Number: 2980 Corrado Cavallini wrote: > > ODBC driver version 07.03.0100 > PostgreSQL database version 7.3.1 > > After having updated to the latest I found that I cannot no more read files > containing an Int8 fields in a primary key using Access 2002. > I could still use those files with the legacy driver version. > > Is easy to recreate the error: > > 1)Create a simple table: > CREATE TABLE public._test ( > col1 int8 NOT NULL, > col2 varchar(50) NOT NULL, > CONSTRAINT _test_pkey PRIMARY KEY (col1, col2) > ) WITH OIDS; > 2) manually fill some records > 3) open an empty access 2000 database > 4) create 2 ODBC DNS using the last and the legacy driver > 5) link the table twice, with the two different DNS > 6) the table linked with odbc legacy is visible > 7) the other give You an error > > I have noted that if You look at the design of the linked table, the Int8 > column is mapped to "Text 255" while in the legacy is mapped to "Text 19" so > I suspect that the total lenght of the primary key exceed some limit. > > Hope this could help Please try the snapshot dll at http://www.geocities.jp/inocchichichi/psqlodbc/ or change the *INT8 AS" DSN option. regards, Hiroshi Inoue http://www.geocities.jp/inocchichichi/psqlodbc/