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 1fdy8U-000775-4I for pgsql-general@arkaria.postgresql.org; Fri, 13 Jul 2018 13:29:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fdy8R-0007Aq-RW for pgsql-general@arkaria.postgresql.org; Fri, 13 Jul 2018 13:29:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fdy8P-0007Ac-S9 for pgsql-general@lists.postgresql.org; Fri, 13 Jul 2018 13:29:23 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fdy8L-0008BU-DD for pgsql-general@postgresql.org; Fri, 13 Jul 2018 13:29:20 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 52865223E8; Fri, 13 Jul 2018 09:29:16 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 13 Jul 2018 09:29:16 -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=B640YLOCE6lmfRYq+u4p/AGVbf2wH 5UL5KahZOaJq9U=; b=m10BnaMT1Tef2bSFNcS2vFqDe+RAYHOlEo5fB8RopBhpw CTtLuGWJOnpCRWkND0tVn9N0Kag8a9V7oz1ueZz4ObBi0f+RG8FyvDiaIKVNV4/n sxTwzHGv2yUxO9cTrLClbXcnnoo+Tq8t8E60nmwO9GVP4ELKshUw2vOb1NiUrSDc ngvIkiwK43Uge4xvENm42eFlZsyQW4Z+OHFnJdHvO/zRwDJmmz7IvGK6M8Rl35SN F+x3drOotC35Tuciv+yfKuKtKCaYsV0HUafjYfw2N+Ijy1s0PtRvDyHeARQHsi4t sswfdtbSECiXEOzWIByJLSitoXCg5DggFZv6iaUmw== 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=B640YL OCE6lmfRYq+u4p/AGVbf2wH5UL5KahZOaJq9U=; b=I9FFA0m3OQf+g7ZuOtXGf5 Wkx3lwoWY0ea5aTwCTltzxYzBfBTstoNW/bXc1imR+HS5MRdMKN2gWlpPfDmDffa 3nsz67p04iwLjEzvD3HoW9LakEPOBDouR5FUEIrZ4P/mdN70tf2BP1wQDkhes4QK 9mS3VaEWI7pw2eNAFtGNhaR0PFmAJGGz64oq8kumbfKc5kWt9br4JHFwgoGDeTWT ShECYe7CHlvP6o0HeaIzVjmOBfdJT6RADm494CWXa/ofqSuUEn3lOzGPh5e/ugdu 1Zyj+QT3TI//D7PUeHe9jr4CiC+lFTyr49XV4TViJbuieJf/5Y06Lq9mnf8mDeMQ == 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 68DCF1025D; Fri, 13 Jul 2018 09:29:15 -0400 (EDT) Subject: Re: ODBC - Getting CONN ERROR: errmsg='The buffer was too small for the InfoValue' To: =?UTF-8?Q?Edgard_Battisti_Guimar=c3=a3es?= Cc: ikorot01@gmail.com, pgsql-general@postgresql.org References: From: Adrian Klaver Message-ID: <2a121bc0-0732-6386-3175-5e16203d26f7@aklaver.com> Date: Fri, 13 Jul 2018 06:29:14 -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 04:56 PM, Edgard Battisti Guimarães wrote: > --- The ODBC Global tracing was turned on too but any one entry was made > from the powerbuilder app. > > --- No problem on sending the entire PB app, but it's really big, so > follows the initial script with the connect and the ini file content > with the parameters. I will make a minimalist PB script to help with the > problem isolation. > > ---  The ODBC driverusedin all caseswas the 32 bit . > > --- The original computer where the program is working ok is a DELL > laptop inspiron 7548 core i5  8GB > > --- The computer presenting the reported problem is a Lenovo Yoga laptop > 720-121KB core i5 8GB > > --- The locale: The original and third computer are the same - The OS > local is Portugues(Brasil), the language, date format, number format etc > are the same: DD/MM/YYYY.  Numbers use comma as decimal point and dot as > group separator. > > --- By running the script below, I receive a messagebox with the > following content: > ====================================================== > erro -1 na abertura do BD > > SQLSTATE = IM001 > [Microsoft]ODBC Driver Manager] Driver does not support this function > ====================================================== My suggestion at this point would be to ask for advice on the -odbc list: https://www.postgresql.org/list/pgsql-odbc/ > > > > The PB script: > =========== > string s, s1, aux, aux1 > int qtc1, qtc2, retornoprofiles, atudbparms > string chlic, chcalc, testa_nr_carros > date dataref > int i > > > s = "ONIBUS.INI" > > sqlca.DBMS       = ProfileString (s, "sqlca", "dbms",       "") > sqlca.dbparm     = ProfileString (s, "sqlca", "dbparm",     "") > > > CONNECT using sqlca; > > if sqlca.sqlcode <> 0 then > messagebox ("erro " + string(sqlca.sqlcode) + " na abertura do BD", & > sqlca.sqlerrtext) > if messagebox("ÔNIBUS","Se voce tem um Banco de Dados salvo~n"+& > "pode usar a opção Arquivo/Retornar BD.~n~n"+& > "Voce deseja prosseguir?",Question!, Yesno!) = 2 then > return > end if > end if > > > > > The ONIBUS.INI parameters file > ========================= > [sqlca] > dbms=ODBC > DbParm=ConnectString='Driver={Postgresql > Unicode};Server=localhost;Port=5432;Database=onbpdc;Uid=dba;Pwd=sql'; > ============================================== > > -- Adrian Klaver adrian.klaver@aklaver.com