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