Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WkZ91-0000n6-N0 for pgsql-odbc@arkaria.postgresql.org; Wed, 14 May 2014 13:22:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WkZ91-0003fi-1A for pgsql-odbc@arkaria.postgresql.org; Wed, 14 May 2014 13:22:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WkZ8z-0003fZ-Vt for pgsql-odbc@postgresql.org; Wed, 14 May 2014 13:22:50 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WkZ8w-0006eO-As for pgsql-odbc@postgresql.org; Wed, 14 May 2014 13:22:49 +0000 Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 66FA420B75 for ; Wed, 14 May 2014 09:22:44 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Wed, 14 May 2014 09:22:44 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; s=mesmtp; bh=vPirhuBSEm44LVskdhztdi50czU=; b=jbTWbPHLAI9bSeZhwqyiftWbFM5n WKER1mgRPqtPkdGi5+W6R/C6P9qvxRuS1xe9Tb7BlY8x4xjkNEXU3E7HNgN3F9wM s2gG4VhqunpEkoBIkK1d48vMBBfBi5+EMTzMI8/Ii6MVw/s6Ba/oQfOIg6CUtLEz 8fXlBMNEYYpk6Zw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=vPirhuBSEm44LVskdhztdi 50czU=; b=h+3JZ5+Lj4dRkGa6FRJuofZywnBfeBEuOOi6+7tefZRNg0W8Qt2rc7 1CU8sLJgB6eV6vu2UurX+59jd2nxvgoSKYB/s8jGsSiDi2OkLv2Jmn+wyfbcytLR rQ2jdhlvL5kxaZgterQfA5X1sHNPEdc6/9OP9ewZI6Y0Tl1acoh0s= X-Sasl-enc: egCm4WlbT6K7P5A/RSmnD73Y4mKzuJGP4fq1+QVoBGa0 1400073764 Received: from panda.site (unknown [65.102.186.57]) by mail.messagingengine.com (Postfix) with ESMTPA id 64BA1C007AE; Wed, 14 May 2014 09:22:43 -0400 (EDT) Message-ID: <53736E22.4090506@aklaver.com> Date: Wed, 14 May 2014 06:22:42 -0700 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Barry Bell , Hiroshi Saito , Michael Paquier , Hiroshi Inoue CC: Heikki Linnakangas , Anna Gershnik , "pgsql-odbc@postgresql.org" Subject: Re: psqlODBC text length with no records References: <152de38c9c2544b9b61f9a2f77e9aa3d@BY2PR08MB281.namprd08.prod.outlook.com> <5372B875.3010407@aklaver.com> <3fca930240554b80bc4174911fb49400@BY2PR08MB281.namprd08.prod.outlook.com> <53736874.2090905@aklaver.com> In-Reply-To: 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 05/14/2014 06:11 AM, Barry Bell wrote: > Use the cast work fine but we are using the initcap function in a lot of places > And do not want to cast to every place. > (Plus we use a lot of other functions that may have the same issue). > > You said the initcap function return "text", > Is this a "short" text like a varchar > Or a long text like a clob,memo etc? This is text vs varchar(n) or char(n). I show the 'n' because in Postgres a varchar without a length is equivalent to text. See here for all the details: http://www.postgresql.org/docs/9.3/interactive/datatype-character.html > > Barry Bell > Senior Developer/Analyst > Logistics > Harte Hanks > 1525 NW 3rd ST > Deerfield Beach FL, 33442 > 954-429-3771 Ext 267 office > 954-281-1464 fax > > -- 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