From ernane@planit.com.br Fri Jun 20 17:24:55 2014 Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wy2YZ-0005CF-M1 for pgsql-odbc@arkaria.postgresql.org; Fri, 20 Jun 2014 17:24:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wy2YZ-0001qP-6I for pgsql-odbc@arkaria.postgresql.org; Fri, 20 Jun 2014 17:24:55 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Wy2YY-0001p4-Bh for pgsql-odbc@postgresql.org; Fri, 20 Jun 2014 17:24:54 +0000 Received: from dns1.yoshidanet.com.br ([186.225.19.19] helo=andromeda.yoshidanet.com.br) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Wy2YU-0002wQ-Od for pgsql-odbc@postgresql.org; Fri, 20 Jun 2014 17:24:52 +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 1Wy2YR-0007M0-45 for pgsql-odbc@postgresql.org; Fri, 20 Jun 2014 14:24:47 -0300 Message-ID: <53A46E58.8010108@planit.com.br> Date: Fri, 20 Jun 2014 14:24:40 -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: pgsql-odbc@postgresql.org Subject: Bug when performing command SELECT without cast Content-Type: multipart/alternative; boundary="------------040506020207010501050107" X-Antivirus: avast! (VPS 140620-0, 20/06/2014), Outbound message X-Antivirus-Status: Clean X-Pg-Spam-Score: 2.5 (++) 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 This is a multi-part message in MIME format. --------------040506020207010501050107 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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. The test was performed in versions 9.03.0300 and 9.03.0100 and not worked properly in any. Ernane Helder Rodrigues --------------040506020207010501050107 Content-Type: multipart/related; boundary="------------030006040506040907050305" --------------030006040506040907050305 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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.

The test was performed in versions 9.03.0300 and 9.03.0100 and not worked properly in any.

Ernane Helder Rodrigues
--------------030006040506040907050305 Content-Type: image/png; name="Sem =?ISO-8859-1?Q?t=EDtulo2=2Epng?=" Content-Transfer-Encoding: base64 Content-ID: Content-Disposition: inline; filename*=ISO-8859-1''%53%65%6D%20%74%ED%74%75%6C%6F%32%2E%70%6E%67 iVBORw0KGgoAAAANSUhEUgAAADgAAAASCAIAAACB04oZAAAAAXNSR0IArs4c6QAAAARnQU1B AACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADlSURBVEhL7ZSBDYQgDEU7XSfqNh2G URyF+1A06GHBBJO7hJ/oVfm2j1qP4p9ogc5WAQ2ISIRwidATSSBYXSfrBo9pUy53v2RF4VHu 96s4iDUGEZxdUBAESY9IiA4BbM7qIewZRRGM+E9b6YIeBhzKqUZTg6Cct4tANwC/A3qJL6pf vfWsKfARMTw4jNgR1XlmgR7CshAKtG0C0syXlkMn1SuvvpaTs86GD8Ru3ukh6N6D/NtOjecZ XdxtyrfDJ5jRp6D46m2kIOevZ3CqBm3gzAWTnFE2nTr6y1qgs7VAZ2uBzlWMH2TUHRtp7tIY AAAAAElFTkSuQmCC --------------030006040506040907050305-- --------------040506020207010501050107-- From adrian.klaver@aklaver.com Fri Jun 20 21:36:10 2014 Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wy6Th-0004hC-Nh for pgsql-odbc@arkaria.postgresql.org; Fri, 20 Jun 2014 21:36:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wy6Th-0002pe-7S for pgsql-odbc@arkaria.postgresql.org; Fri, 20 Jun 2014 21:36:09 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Wy6Tg-0002pD-EQ for pgsql-odbc@postgresql.org; Fri, 20 Jun 2014 21:36:08 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Wy6Td-0007mz-8M for pgsql-odbc@postgresql.org; Fri, 20 Jun 2014 21:36:06 +0000 Received: from compute4.internal (compute4.nyi.mail.srv.osa [10.202.2.44]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 5525F205AD; Fri, 20 Jun 2014 17:35:57 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Fri, 20 Jun 2014 17:35:57 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; s=mesmtp; bh=ogA/YB/N8GLyI1XCLWESras+ODA=; b=hTtU6HnF33Vkr+yOFTwKbEK5WJdt 5D5bj4hHk8E0UZbY2tH2S5GTAEZPv+jKH1QhqeJQbvqI6v/O+DzD5mw1iXQYBStF 6grV60yCYzGPopMEx3+HfpNtOsacNP4O6XmRyhycsVFQ/VVzVyt0oVOKDK/nCUma YMKrNwUSaqn+VN8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=ogA/YB/N8GLyI1XCLWESra s+ODA=; b=s2X6c9ZfVf9drlU+LxcjduqaMGdK1BxljDE2ZT0YNB/XZZ93SLzU+K fG8g6sFtSQuR6EgxfP/gA/MMsRCu9JWy6ktG0o4sU63/3rQJ1d+rl9a3IRml2KYg qNRksw1JSakFfPXXiARmFBiaMqARhpK26rrtSnA9zJuvGatd6KOXU= X-Sasl-enc: YJCvMGwMM8TIqF1MoomzKTzDU5CsyzyOWsQ70XCQ0FtT 1403300157 Received: from killi.site (unknown [24.17.179.185]) by mail.messagingengine.com (Postfix) with ESMTPA id D9D4B680237; Fri, 20 Jun 2014 17:35:56 -0400 (EDT) Message-ID: <53A4A93E.5050805@aklaver.com> Date: Fri, 20 Jun 2014 14:35:58 -0700 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Desenvolvimento , pgsql-odbc@postgresql.org Subject: Re: Bug when performing command SELECT without cast References: <53A46E58.8010108@planit.com.br> In-Reply-To: <53A46E58.8010108@planit.com.br> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.8 (/) 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 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. What program are using to execute the SELECT? Also from what I see you are selecting a string with an empty space at the end, is that correct? > > The test was performed in versions 9.03.0300 and 9.03.0100 and not > worked properly in any. > > Ernane Helder Rodrigues -- 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 From adrian.klaver@aklaver.com Fri Jun 20 21:51:35 2014 Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wy6id-0005Cw-E3 for pgsql-odbc@arkaria.postgresql.org; Fri, 20 Jun 2014 21:51:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wy6ic-0000Vb-90 for pgsql-odbc@arkaria.postgresql.org; Fri, 20 Jun 2014 21:51:34 +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 1Wy6ia-0000UW-3y for pgsql-odbc@postgresql.org; Fri, 20 Jun 2014 21:51:32 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Wy6iV-00019N-RW for pgsql-odbc@postgresql.org; Fri, 20 Jun 2014 21:51:30 +0000 Received: from compute1.internal (compute1.nyi.mail.srv.osa [10.202.2.41]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id D73E820D16; Fri, 20 Jun 2014 17:51:22 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Fri, 20 Jun 2014 17:51:22 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; s=mesmtp; bh=xg+AdSWZSxrgzJozwON04P9fOAo=; b=UZu1WyXSefCMSUPJqj7BPbQp+Rss KS3uQY7GFjPE8tUN9o4BRRBapBHtHYcPjc/8OYIT3ZLDoRw/oxYN5z9R/hZldEPz yrw8G7OCgyezn4MLmM70FDaBqCUhzX/locAtK5IdlSqSi1act2CIHOjfms026HJM YlgvhpKMVl42e0M= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=xg+AdSWZSxrgzJozwON04P 9fOAo=; b=sDmHYNRyhnuvefJiOjOg5XL4rBAuYi5CdUqhE5h99ZFfM4kDWEC92o CPrFNDGU06lrSsktbm5pBgy/z3HTwyfE8TIPMlyh/slw029VRP79NxEdaPGgLf7I Q2ZS9heQLBvTS3WU/BI96tu/CkCP1zuuFy9dx87safBV9j+Fn+hb4= X-Sasl-enc: VOAOaMhrNSJeqW8ZzW2sTtMZOy0g9nVVEXiUe+CRfJYg 1403301082 Received: from killi.site (unknown [24.17.179.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 64CB9680237; Fri, 20 Jun 2014 17:51:22 -0400 (EDT) Message-ID: <53A4ACD9.5050005@aklaver.com> Date: Fri, 20 Jun 2014 14:51:21 -0700 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Desenvolvimento , pgsql-odbc@postgresql.org Subject: Re: Bug when performing command SELECT without cast References: <53A46E58.8010108@planit.com.br> In-Reply-To: <53A46E58.8010108@planit.com.br> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) 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 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 -- 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 From ernane@planit.com.br Tue Jun 24 11:41:25 2014 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 From adrian.klaver@aklaver.com Tue Jun 24 14:00:02 2014 Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WzRGU-0005D0-5q for pgsql-odbc@arkaria.postgresql.org; Tue, 24 Jun 2014 14:00:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WzRGT-0002wt-0c for pgsql-odbc@arkaria.postgresql.org; Tue, 24 Jun 2014 14:00:01 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WzRGS-0002wn-5v for pgsql-odbc@postgresql.org; Tue, 24 Jun 2014 14:00:00 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WzRGN-0003PU-IA for pgsql-odbc@postgresql.org; Tue, 24 Jun 2014 13:59:57 +0000 Received: from compute1.internal (compute1.nyi.mail.srv.osa [10.202.2.41]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 178AD21581; Tue, 24 Jun 2014 09:59:53 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Tue, 24 Jun 2014 09:59:53 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; s=mesmtp; bh=tH8q5iOhTnjxvOGH1JLDU3LTApA=; b=YBpZXczBPDbcIeOqF6HHYaFAlp3R G+1VcufZAxQMpNHRoCkxfO75CUgxD9EYCQxWmSPDxoQnlt6gDCiStaWhVoI4mAfP aVY2Ttpz6Emhl+MvlQYChG05PmFLO+Q5+/GyLr/Tv32y8VckCLyNE0p6zwwkiDkC FNYa/ysVl93IdVg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=tH8q5iOhTnjxvOGH1JLDU3 LTApA=; b=TRCQ0sFQh5YmocEaKiFUcS4ArDmRig8xzkYXpjtKJs3zm/SG8HwCZS Gf4/1+8qqg3G273byGgs79lpDLdGIN/zgMdvnR11v/pC4ja8Dnq/Y9xI36KS/Jp9 hfh+3chbMU7+hpj8CpeTJXhJz0hdBywyVKeOt84tXoWSUbqYCIYrM= X-Sasl-enc: GEypBtgWNgMZAr6vucnrE7vhiC4LKjplhZ15YGfK5W/a 1403618392 Received: from panda.site (unknown [65.102.186.57]) by mail.messagingengine.com (Postfix) with ESMTPA id 8E25468025D; Tue, 24 Jun 2014 09:59:52 -0400 (EDT) Message-ID: <53A98457.8050806@aklaver.com> Date: Tue, 24 Jun 2014 06:59:51 -0700 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Desenvolvimento , pgsql-odbc@postgresql.org Subject: Re: Bug when performing command SELECT without cast References: <53A46E58.8010108@planit.com.br> <53A4ACD9.5050005@aklaver.com> <53A963CA.30008@planit.com.br> In-Reply-To: <53A963CA.30008@planit.com.br> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) 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 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.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 From ernane@planit.com.br Tue Jun 24 14:22:24 2014 Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WzRc8-00061w-HB for pgsql-odbc@arkaria.postgresql.org; Tue, 24 Jun 2014 14:22:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WzRc7-0003w7-Mt for pgsql-odbc@arkaria.postgresql.org; Tue, 24 Jun 2014 14:22:23 +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 1WzRc7-0003vz-4S for pgsql-odbc@postgresql.org; Tue, 24 Jun 2014 14:22: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 1WzRc4-0007GI-1u for pgsql-odbc@postgresql.org; Tue, 24 Jun 2014 14:22: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 1WzRby-0002eR-Jv; Tue, 24 Jun 2014 11:22:14 -0300 Message-ID: <53A98990.1070605@planit.com.br> Date: Tue, 24 Jun 2014 11:22:08 -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> <53A963CA.30008@planit.com.br> <53A98457.8050806@aklaver.com> In-Reply-To: <53A98457.8050806@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 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 From adrian.klaver@aklaver.com Tue Jun 24 14:33:18 2014 Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WzRmf-0006QE-Sr for pgsql-odbc@arkaria.postgresql.org; Tue, 24 Jun 2014 14:33:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WzRmf-0007hA-Cg for pgsql-odbc@arkaria.postgresql.org; Tue, 24 Jun 2014 14:33:17 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WzRme-0007eh-7M for pgsql-odbc@postgresql.org; Tue, 24 Jun 2014 14:33:16 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WzRma-00044P-Ey for pgsql-odbc@postgresql.org; Tue, 24 Jun 2014 14:33:14 +0000 Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 889C221BFA; Tue, 24 Jun 2014 10:33:07 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Tue, 24 Jun 2014 10:33:09 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; s=mesmtp; bh=I/B6WgtPKXcx48Iazoc6r5EcbAI=; b=nKka4n/ZgiUOMkPZPUWpfz/Ip+8d MQ2nmGzt6OolL8V+Dp/6FlLQ0dOJDohchByEGWWIW7xKJW/qgCYmckuIu64VW0M+ bIv+74Y3j3mwJHFtjvYN3DXzv2CMLPgNt80qsuJ1hLFkaV3TnEk577nZdAKu/YCi 9MzQof2QQqwUeZM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=I/B6WgtPKXcx48Iazoc6r5 EcbAI=; b=Ake9xm1ZehmFg+yngQpMdQPwJzBvGaHK+UZ+PzWJraags0wF2S67lJ oVAdNJAQgxtPZDmka6a4h3+q0Kx26UFDNa8IbyguB027LiOsrWSl2K7vF1la7FMU 6jx4/pi75o5WtyGhbJjzA9zYDxeK86jnsZrqMo7PVr48f6eACYgbg= X-Sasl-enc: wvAqX2G8apKVEg+JI0lWEHP81cIIqcnR5rcMxkfVsepn 1403620383 Received: from panda.site (unknown [65.102.186.57]) by mail.messagingengine.com (Postfix) with ESMTPA id E877568028A; Tue, 24 Jun 2014 10:33:02 -0400 (EDT) Message-ID: <53A98C1E.6010307@aklaver.com> Date: Tue, 24 Jun 2014 07:33:02 -0700 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Desenvolvimento , pgsql-odbc@postgresql.org Subject: Re: Bug when performing command SELECT without cast References: <53A46E58.8010108@planit.com.br> <53A4ACD9.5050005@aklaver.com> <53A963CA.30008@planit.com.br> <53A98457.8050806@aklaver.com> <53A98990.1070605@planit.com.br> In-Reply-To: <53A98990.1070605@planit.com.br> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) 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 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.outlook.com 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 From adrian.klaver@aklaver.com Tue Jun 24 17:30:34 2014 Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WzUYD-0004Cj-En for pgsql-odbc@arkaria.postgresql.org; Tue, 24 Jun 2014 17:30:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WzUYC-0004sI-UG for pgsql-odbc@arkaria.postgresql.org; Tue, 24 Jun 2014 17:30:32 +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 1WzUYB-0004qK-Lf for pgsql-odbc@postgresql.org; Tue, 24 Jun 2014 17:30:31 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WzUY7-0002ci-FQ for pgsql-odbc@postgresql.org; Tue, 24 Jun 2014 17:30:30 +0000 Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id E345022504; Tue, 24 Jun 2014 13:30:17 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Tue, 24 Jun 2014 13:30:18 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; s=mesmtp; bh=q5Z89c0+J6QwLWE/8eBPHlssbms=; b=XhFbYWdKLkU4ZJBW7Jotx+j6jS7m RwEyKm9YKM+tI1oH9YE/wK7qIjiH++bKxJKyNHJ5+HQufN5za5QNkwMX6G63PRP7 e2YzKuFjAv6BEaF+YJdmQE/HLupuwbaZPs9Wmw48eIrmd6HCdW3Cc8w8qnj6XoeB 3Ncll1VUvVlsaIc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=q5Z89c0+J6QwLWE/8eBPHl ssbms=; b=pceevI3WUGy5c5f0UG+8GTT5o+rB8mxVmk/hls+nw9AGOPJfSrOVGI eTs4Zgsq1Azx3IZFg1zaLUr9BrQ8Ecx3Ki++G1MyTGlHzODlQbw8XGVQieSAOpJz Wfq3PTRW5mS8x1m2fOyqCIIYyeio7IoxOY9Ccin1M/ZlKMM7QhRDs= X-Sasl-enc: gjxlXyIOoffZ1MXYJAVZSOVvldhHE1UxRSirp1HeeSbx 1403631015 Received: from killi.site (unknown [173.10.100.142]) by mail.messagingengine.com (Postfix) with ESMTPA id 3E422680236; Tue, 24 Jun 2014 13:30:15 -0400 (EDT) Message-ID: <53A9B5A6.7000001@aklaver.com> Date: Tue, 24 Jun 2014 10:30:14 -0700 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Desenvolvimento , pgsql-odbc@postgresql.org Subject: Re: Bug when performing command SELECT without cast References: <53A46E58.8010108@planit.com.br> <53A4ACD9.5050005@aklaver.com> <53A963CA.30008@planit.com.br> <53A98457.8050806@aklaver.com> <53A98990.1070605@planit.com.br> In-Reply-To: <53A98990.1070605@planit.com.br> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) 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 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. > Is the encoding for your database Unicode? Have you done this?: http://www.west-wind.com/webconnection/wwClient_docs/_1F00WW3PB.htm If not have you tried the ANSI driver? -- 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