Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fdbKH-0004U9-ND for pgsql-general@arkaria.postgresql.org; Thu, 12 Jul 2018 13:08:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fdbKF-0000T6-Nm for pgsql-general@arkaria.postgresql.org; Thu, 12 Jul 2018 13:08:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fdbKF-0000Sz-Fz for pgsql-general@lists.postgresql.org; Thu, 12 Jul 2018 13:08:03 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fdbKB-0006z0-02 for pgsql-general@postgresql.org; Thu, 12 Jul 2018 13:08:03 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 2DD3C21687; Thu, 12 Jul 2018 09:07:57 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 12 Jul 2018 09:07:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=pRSCaoZqzXMK5I1lXsMk4Qw3TEtfZ EP0U+heeXfKlQs=; b=qdrcKHsgTCxWyZeiivey+HvhupxLNL5jtA3m5nRP6R8d2 F6V5LEkI6UON3iNzKMZemp4vcBtzCOuyKWYD6MriZRyjgdGHTYE1AsIoRbdONJPp 3N1mOdwugGMlvYgr+xf++nz3HpN10RPyvrntGD7V7+5FXA1tIzVbVOtmzNCtu1m3 XIilylzy90vzkZ5wzdqMlIWjQlODVICBM8MA5FM95wU3VXJNVJE0bCI79Qd/Pjcc ObdbHw9DeTtTnhImadyyZA8pZJ1strg/c167Pw9NsRBEQL113/JBJmCNb32Op/2F VY59jaTm6CKI5WJtxjpeDWiyzkcqmnD35l8Nb5WlA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=pRSCao ZqzXMK5I1lXsMk4Qw3TEtfZEP0U+heeXfKlQs=; b=Jn/4c1WabtatkbhHS5pL3+ PxkTp0fn2ztZHdJ7aQozfThAiZ8W+2XlgyGEsBUBthoZfkK9ja0Df63wG9EJyYQN IKxLc99qUCbV++PqzRzcc8FyU72rSxZ8oD/nNMlEuxHMQOx4RA1UDMQv2FPTtxCQ hcQjtoVpbfKWRNdh1Tc4X2avuL30MPaskZRiWZf6tZluSUE+y6rHah8D5dBkUW4Y w/l3E3FAII3hRCdMNKpXsUrdYmwu40T3Vw58x4uTwkMvrUUhKZJJi5JYnWxVrm79 FjlA5/80bimDgvBnJlOOhpFOXpIK5RVJ3MI5WipfckUG1qr1FTqMvyIIkm60tRWg == X-ME-Proxy: X-ME-Sender: Received: from [192.168.1.3] (unknown [71.212.134.181]) by mail.messagingengine.com (Postfix) with ESMTPA id 3C503E49FA; Thu, 12 Jul 2018 09:07:56 -0400 (EDT) Subject: Re: ODBC - Getting CONN ERROR: errmsg='The buffer was too small for the InfoValue' To: Igor Korot , =?UTF-8?Q?Edgard_Battisti_Guimar=c3=a3es?= Cc: pgsql-general References: From: Adrian Klaver Message-ID: Date: Thu, 12 Jul 2018 06:07:55 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 07/12/2018 05:19 AM, Igor Korot wrote: > ,Hi, > > On Wed, Jul 11, 2018 at 10:33 PM, Edgard Battisti GuimarĂ£es > wrote: >> I've ported a powerbuilder application to postgresql. Tested ok on windows >> 10 64, was installed on two win10-64 other computers, all connecting the >> postgresql database in the localhost with access via odbc. The third of them >> presented the error detailed below in the logs (mylog and psqlodbc) >> integrally copy and paste. > > Which database the application connecting to initially? > Can you show the PB script that connects to the DB? > Can you show the credentials you are trying to connect with? > Can you turn on ODBC logging and send the log with the failure? The above information is in the original post, with exception of PB script. Given that the PB app is 32 bit and the computers are 64 bit I am wondering if on the third computer the wrong ODBC driver is being used? Also what are the hardware specifications for the third computer relative to the other two? Lastly the error message shows up in the source code of info.c in the section for Unicode support: #ifdef UNICODE_SUPPORT if (CC_is_in_unicode_driver(conn)) { len = utf8_to_ucs2(p, len, (SQLWCHAR *) rgbInfoValue, cbInfoValueMax / WCLEN); len *= WCLEN; } else #endif /* UNICODE_SUPPORT */ strncpy_null((char *) rgbInfoValue, p, (size_t) cbInfoValueMax); if (len >= cbInfoValueMax) { result = SQL_SUCCESS_WITH_INFO; CC_set_error(conn, CONN_TRUNCATED, "The buffer was too small for the InfoValue.", func); } } So what is the locale for the third computer? > > Thank you. > >> >> -- >> Edgard Battisti GuimarĂ£es >> > > -- Adrian Klaver adrian.klaver@aklaver.com