Re: Bug when performing command SELECT without cast

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

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;"

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Desenvolvimento 2014-06-24 14:22:08 Re: Bug when performing command SELECT without cast
Previous 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