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 11:22:08 -0300
Message-ID: <53A98990.1070605@planit.com.br> (raw)
In-Reply-To: <53A98457.8050806@aklaver.com>
References: <53A46E58.8010108@planit.com.br>
	<53A4ACD9.5050005@aklaver.com>
	<53A963CA.30008@planit.com.br>
	<53A98457.8050806@aklaver.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>


ON 24/06/2014 10:59 AM, Adrian Klaver wrote:
> On 06/24/2014 04:40 AM, Desenvolvimento wrote:
>> 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"
>
>
> In what program are you doing the above?
>
> What happens if you do?:
>
> "SELECT 1058;"
>
>
>

I'm using Microsoft Visual FoxPro 9.0 SP2 with driver "PostgreSQL UNICODE".
When I execute "SELECT 1058;" my return is "1058" type numeric.



-- 
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: <53A98990.1070605@planit.com.br>
Permalink:  ../53A98990.1070605@planit.com.br/
Also on:    postgresql.org/message-id/53A98990.1070605@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: <53A98990.1070605@planit.com.br>
  References: <53A46E58.8010108@planit.com.br> <53A4ACD9.5050005@aklaver.com> <53A963CA.30008@planit.com.br> <53A98457.8050806@aklaver.com> <53A98990.1070605@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