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

On 07/12/2018 05:19 AM, Igor Korot wrote:
> ,Hi,
> 
> On Wed, Jul 11, 2018 at 10:33 PM, Edgard Battisti Guimarães
> <edgardbg1@gmail.com> 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




view thread (6+ messages)  latest in thread

Message-ID: <f8bf7726-09e1-e516-3f97-5a70c40fd648@aklaver.com>
Permalink:  ../f8bf7726-09e1-e516-3f97-5a70c40fd648@aklaver.com/
Also on:    postgresql.org/message-id/f8bf7726-09e1-e516-3f97-5a70c40fd648@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, ikorot01@gmail.com, edgardbg1@gmail.com
  Subject: Re: ODBC - Getting CONN ERROR: errmsg='The buffer was too small for the InfoValue'
  In-Reply-To: <f8bf7726-09e1-e516-3f97-5a70c40fd648@aklaver.com>
  References: <CAK+hLKTLxk=_Dt+Ciw6h9VXfJy8NeAF107=1rB7j7oCV9XaBSg@mail.gmail.com> <CA+FnnTxJZ8z6dCNNVXyvvitYBsNEwSQDjfYYKOGXx90YaB2P9A@mail.gmail.com> <f8bf7726-09e1-e516-3f97-5a70c40fd648@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