Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WzP6L-0000ig-58 for pgsql-odbc@arkaria.postgresql.org; Tue, 24 Jun 2014 11:41:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WzP6K-0000g7-3z for pgsql-odbc@arkaria.postgresql.org; Tue, 24 Jun 2014 11:41:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WzP6J-0000g0-72 for pgsql-odbc@postgresql.org; Tue, 24 Jun 2014 11:41:23 +0000 Received: from dns1.yoshidanet.com.br ([186.225.19.19] helo=andromeda.yoshidanet.com.br) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1WzP6A-0004Do-Is for pgsql-odbc@postgresql.org; Tue, 24 Jun 2014 11:41:22 +0000 Received: from [179.111.207.73] (helo=[127.0.0.1]) by andromeda.yoshidanet.com.br with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WzP63-000843-Vj; Tue, 24 Jun 2014 08:41:08 -0300 Message-ID: <53A963CA.30008@planit.com.br> Date: Tue, 24 Jun 2014 08:40:58 -0300 From: Desenvolvimento User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Adrian Klaver , pgsql-odbc@postgresql.org Subject: Re: Bug when performing command SELECT without cast References: <53A46E58.8010108@planit.com.br> <53A4ACD9.5050005@aklaver.com> In-Reply-To: <53A4ACD9.5050005@aklaver.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 140623-1, 23/06/2014), Outbound message X-Antivirus-Status: Clean X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org 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