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