Re: Bug when performing command SELECT without cast

From: Desenvolvimento <ernane(at)planit(dot)com(dot)br>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, pgsql-odbc(at)postgresql(dot)org
Subject: Re: Bug when performing command SELECT without cast
Date: 2014-06-24 11:40:58
Message-ID: 53A963CA.30008@planit.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

I'm working with OS Windows 8.1 Pro 64-bit and my server is:
Linux - Cent-OS
PostgreSQL 8.4.21 on x86_64-unknown-linux-gnu, compiled by GCC gcc (GCC)
4.4.7 20120313 (Red Hat 4.4.7-4), 64-bit

About the empty space, the correct string is:
"SELECT '1058';" -- Without space.

If I cast it, the return will be:
"SELECT '1058'::char(4);"
Return: "1058"

On 20/06/2014 06:51 PM, Adrian Klaver wrote:
> On 06/20/2014 10:24 AM, Desenvolvimento wrote:
>> Dear,
>> Good afternoon!
>>
>> When executing a SELECT command using ODBC, my return is different from
>> earlier versions.
>>
>> Command: "SELECT '1058 ';"
>> Return: 1 0 5 8
>> Sorry for the picture in return, unable to copy the return because I
>> think after each digit is returning me a null.
>
> Meant to add, what OS are you working with and is it the same for both
> the client and the Postgres server?
>
>>
>> The test was performed in versions 9.03.0300 and 9.03.0100 and not
>> worked properly in any.
>>
>> Ernane Helder Rodrigues
>
>

In response to

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Heikki Linnakangas 2014-06-24 13:43:36 Re: Crash when using 'Use Declare/Fetch' and the result set does contain one row only
Previous Message Itnal, Prakash (NSN - IN/Bangalore) 2014-06-24 11:13:33 Re: Not sure if this crash is in psql odbc driver?