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 193F552824 for ; Tue, 17 May 2005 10:23:48 -0300 (ADT) 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 03559-06 for ; Tue, 17 May 2005 13:23:41 +0000 (GMT) Received: from gk-us2.michelin.com (gk-us2.michelin.com [156.65.14.19]) by svr1.postgresql.org (Postfix) with ESMTP id 836285280A for ; Tue, 17 May 2005 10:23:37 -0300 (ADT) Received: from ONCMH1.onc.michelin.com (unverified) by gk-us2.michelin.com (Content Technologies SMTPRS 4.3.17) with ESMTP id for ; Tue, 17 May 2005 09:22:53 -0400 Received: from oncmtap1.onc.michelin.com by oncmh1.onc.michelin.com with ESMTP for pgsql-odbc@postgresql.org; Tue, 17 May 2005 09:17:35 -0400 Received: from oncems01.onc.michelin.com ([156.65.125.150]) by oncmtap1.onc.michelin.com (Netscape Messaging Server 4.15) with ESMTP id IGMYJA00.S6W for ; Tue, 17 May 2005 09:23:34 -0400 Received: from [156.65.151.174] (unverified) by oncems01.onc.michelin.com (Content Technologies SMTPRS 4.2.5) with ESMTP id ; Tue, 17 May 2005 09:23:34 -0400 Message-Id: <4289F053.7080400@us.michelin.com> Date: Tue, 17 May 2005 09:23:31 -0400 From: "Greg Campbell" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Peter Bense Cc: pgsql-odbc@postgresql.org Subject: Re: Access 2000 bitching... "The field is too small to References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------010108080404070109070002" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.035 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200505/25 X-Sequence-Number: 5328 This is a multi-part message in MIME format. --------------010108080404070109070002 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Trying not too assume to much, have you, turned on the ODBC logging to see the SQL traffic back and forth? And have you turned on logging for the PostgreSQL server to the statement level? The error statement must be VERY literal, some data doesn't fit into one or more of your int2 (2-byte), int4 (4-byte), or date/time fields. Also don't rule out checking the size of your Serial field. Peter Bense wrote: > I'm not at work right now so don't have the exact details available, > BUT... > > 1. I am not using check boxes. > 2. When I insert data into the table via PSQL it displays fine in the > view itself. The error occurs when I try to insert. The user does have > all the necessary privileges, etc. I have verified that part about 10 > times. > 3. I have not changed any of the odbc settings (as you mention) from > their default values. > > ./peter > > Peter T. Bense - Teradata Certified Professional > (ptbense@gwm.sc.edu) - 803-777-9476 > Database Administrator/Webmaster > Prevention Research Center > University of South Carolina > >>>>Jeff Eckermann 05/16/05 4:47 PM >>> > > > --- Peter Bense wrote: > >>I am getting a >> >>"The field is too small to accept the amount of data >>you attempted to >>add" postgresql error when attempting to enter data >>into the following >>linked table in MS-Access. Nothing seems to be out >>of range. Any >>ideas?: > > > I assume you are using check boxes? This has been a > frequently encountered problem for Access users. > > I adopted a specific workaround a while ago, then > forgot about the problem. But before I recommend that > workaround, let's make sure that time has not revealed > a better way. What are your driver settings for > "bools as char" and "true is -1"? > > >>CREATE TABLE tblpis_survey_receipt ( >> insertion SERIAL, >> ppt_id INT4 NOT NULL, >> date_received DATE NOT NULL, >> staff_id INT4 NOT NULL, >> survey_type INT2 NOT NULL, >> is_blank BOOL NOT NULL, >> birth_month INT2, >> birth_year INT2, >> check_ppt BOOL NOT NULL, >> check_dob BOOL NOT NULL, >> check_tracking BOOL NOT NULL, >> date_inserted TIMESTAMP WITHOUT TIME ZONE NOT >>NULL, >> date_modified TIMESTAMP WITHOUT TIME ZONE NOT >>NULL, >> PRIMARY KEY (insertion) >>); >> >> >>Peter T. Bense - Teradata Certified Professional >>(ptbense@gwm.sc.edu) - 803-777-9476 >>Database Administrator/Webmaster >>Prevention Research Center >>University of South Carolina >> >>---------------------------(end of >>broadcast)--------------------------- >>TIP 2: you can get off all lists at once with the >>unregister command >> (send "unregister YourEmailAddressHere" to >>majordomo@postgresql.org) >> > > > > > __________________________________ > Yahoo! Mail Mobile > Take Yahoo! Mail with you! Check email on your mobile phone. > http://mobile.yahoo.com/learn/mail > > ---------------------------(end of broadcast)--------------------------- > TIP 9: the planner will ignore your desire to choose an index scan if > your > joining column's datatypes do not match > > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly --------------010108080404070109070002 Content-Type: text/x-vcard; charset=utf-8; name="greg.campbell.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="greg.campbell.vcf" begin:vcard fn:Greg Campbell n:Campbell;Greg org:Michelin North America - US5 Lexington;ENG-ASE email;internet:greg.campbell@us.michelin.com title:ASE Systems Engineer tel;work:803-951-5561/x75561 x-mozilla-html:FALSE version:2.1 end:vcard --------------010108080404070109070002--