pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Desenvolvimento <ernane@planit.com.br>
To: Adrian Klaver <adrian.klaver@aklaver.com>
To: pgsql-odbc@postgresql.org
Subject: Re: Bug when performing command SELECT without cast
Date: Tue, 24 Jun 2014 08:40:58 -0300
Message-ID: <53A963CA.30008@planit.com.br> (raw)
In-Reply-To: <53A4ACD9.5050005@aklaver.com>
References: <53A46E58.8010108@planit.com.br>
	<53A4ACD9.5050005@aklaver.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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
>
>



-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



view thread (8+ messages)  latest in thread

Message-ID: <53A963CA.30008@planit.com.br>
Permalink:  ../53A963CA.30008@planit.com.br/
Also on:    postgresql.org/message-id/53A963CA.30008@planit.com.br

 · 

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-odbc@postgresql.org
  Cc: ernane@planit.com.br, adrian.klaver@aklaver.com
  Subject: Re: Bug when performing command SELECT without cast
  In-Reply-To: <53A963CA.30008@planit.com.br>
  References: <53A46E58.8010108@planit.com.br> <53A4ACD9.5050005@aklaver.com> <53A963CA.30008@planit.com.br>

* 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