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 32BFCD1B2D9 for ; Wed, 21 Jul 2004 07:23:27 -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 46288-01 for ; Wed, 21 Jul 2004 10:23:08 +0000 (GMT) Received: from junk.nocrew.org (junk.nocrew.org [213.242.147.30]) by svr1.postgresql.org (Postfix) with ESMTP id 07294D1B179 for ; Wed, 21 Jul 2004 07:23:04 -0300 (ADT) Received: from tomas by junk.nocrew.org with local (Exim 3.35 #1 (Debian)) id 1BnEFS-0004Ng-00; Wed, 21 Jul 2004 12:22:54 +0200 To: "Dave Page" Cc: Subject: Re: SQLExecute fails question References: From: tomas@nocrew.org (Tomas =?iso-8859-1?q?Sk=E4re?=) Date: 21 Jul 2004 12:22:54 +0200 In-Reply-To: Message-ID: <80658hbqwx.fsf@junk.nocrew.org> Lines: 27 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/120 X-Sequence-Number: 4253 "Dave Page" writes: > > [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Joost > > Kraaijeveld > > > > Hi all, > > > > When I get this error message from a SQLExecute(): > > > > [2152] SQLSTATE = HY000 > > [2152] Native rc Code = 7 > > [2152] Message: ERROR: value too long for type character(20) > > > > does that mean that one of my columns as that is defined as > > char(20) receives more data than 20 chars or does that mean > > that column 20 receives to many chars? > > The first. The data is too long for char(20). It would be very helpful sometimes to know what column that failed. But maybe that's really a PostgreSQL issue, and not the ODBC driver? Greetings, Tomas