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