pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Desenvolvimento <ernane@planit.com.br>
To: pgsql-odbc@postgresql.org
Subject: Re: Bug when performing command SELECT without cast
Date: Tue, 24 Jun 2014 07:33:02 -0700
Message-ID: <53A98C1E.6010307@aklaver.com> (raw)
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

On 06/24/2014 07:22 AM, Desenvolvimento wrote:
>
> 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.
>

There was a previous thread about VFP and text/string issues(warning it 
is long and not resolved):

http://www.postgresql.org/message-id/152de38c9c2544b9b61f9a2f77e9aa3d@BY2PR08MB281.namprd08.prod.out...

As near as I could figure VFP and ODBC are not always in agreement on 
what is the correct type for a string. I have to run now but I will take 
another look when I get a chance.



-- 
Adrian Klaver
adrian.klaver@aklaver.com


-- 
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: <53A98C1E.6010307@aklaver.com>
Permalink:  ../53A98C1E.6010307@aklaver.com/
Also on:    postgresql.org/message-id/53A98C1E.6010307@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-odbc@postgresql.org
  Cc: adrian.klaver@aklaver.com, ernane@planit.com.br
  Subject: Re: Bug when performing command SELECT without cast
  In-Reply-To: <53A98C1E.6010307@aklaver.com>
  References: <53A46E58.8010108@planit.com.br> <53A4ACD9.5050005@aklaver.com> <53A963CA.30008@planit.com.br> <53A98457.8050806@aklaver.com> <53A98990.1070605@planit.com.br> <53A98C1E.6010307@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