pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Edgard Battisti Guimarães <edgardbg1@gmail.com>
Cc: ikorot01@gmail.com
Cc: pgsql-general@postgresql.org
Subject: Re: ODBC - Getting CONN ERROR: errmsg='The buffer was too small for the InfoValue'
Date: Fri, 13 Jul 2018 06:29:14 -0700
Message-ID: <2a121bc0-0732-6386-3175-5e16203d26f7@aklaver.com> (raw)
In-Reply-To: <CAK+hLKSQmqJjrxRt2tXkFgPQiow-qB3w-nK+w7sD1a2WFoL56Q@mail.gmail.com>
References: <CAK+hLKTLxk=_Dt+Ciw6h9VXfJy8NeAF107=1rB7j7oCV9XaBSg@mail.gmail.com>
	<CA+FnnTxJZ8z6dCNNVXyvvitYBsNEwSQDjfYYKOGXx90YaB2P9A@mail.gmail.com>
	<f8bf7726-09e1-e516-3f97-5a70c40fd648@aklaver.com>
	<CAK+hLKSQmqJjrxRt2tXkFgPQiow-qB3w-nK+w7sD1a2WFoL56Q@mail.gmail.com>

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




view thread (6+ messages)  latest in thread

Message-ID: <2a121bc0-0732-6386-3175-5e16203d26f7@aklaver.com>
Permalink:  ../2a121bc0-0732-6386-3175-5e16203d26f7@aklaver.com/
Also on:    postgresql.org/message-id/2a121bc0-0732-6386-3175-5e16203d26f7@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, edgardbg1@gmail.com, ikorot01@gmail.com
  Subject: Re: ODBC - Getting CONN ERROR: errmsg='The buffer was too small for the InfoValue'
  In-Reply-To: <2a121bc0-0732-6386-3175-5e16203d26f7@aklaver.com>
  References: <CAK+hLKTLxk=_Dt+Ciw6h9VXfJy8NeAF107=1rB7j7oCV9XaBSg@mail.gmail.com> <CA+FnnTxJZ8z6dCNNVXyvvitYBsNEwSQDjfYYKOGXx90YaB2P9A@mail.gmail.com> <f8bf7726-09e1-e516-3f97-5a70c40fd648@aklaver.com> <CAK+hLKSQmqJjrxRt2tXkFgPQiow-qB3w-nK+w7sD1a2WFoL56Q@mail.gmail.com> <2a121bc0-0732-6386-3175-5e16203d26f7@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox