Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wkb5S-0005pW-E3 for pgsql-odbc@arkaria.postgresql.org; Wed, 14 May 2014 15:27:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wkb5R-0003Q9-Rx for pgsql-odbc@arkaria.postgresql.org; Wed, 14 May 2014 15:27:17 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wkb5Q-0003Nq-2t for pgsql-odbc@postgresql.org; Wed, 14 May 2014 15:27:16 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wkb5M-0001cJ-S7 for pgsql-odbc@postgresql.org; Wed, 14 May 2014 15:27:15 +0000 Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 16EC920CA6; Wed, 14 May 2014 11:27:09 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Wed, 14 May 2014 11:27:11 -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=kwEdorb9rEo14f73u2iowz8f/nA=; b=UKu3qzg/soVBQXdc/xq1uxYKXgwT W1lRB8Rk7efRTKv+JP1xpvgOWjOTr/+nFjb9jcZ3DVJtUppkiN7CAP8oNxO+amBh 73ft8kJqJ0ofE6mQ6Kx6VFiIpXTLIjUHlXhjCf8xd16l63wxc4Qea1VGABz09gHQ DoQPlX9Recb96Zs= 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=kwEdorb9rEo14f73u2iowz 8f/nA=; b=MlSqcXMB+HWyXN4/IEnQdDZanOQXyN8EaG5BcKt9244mQtYEq5fQJB 2qnp7LG/nxoCk6Ixt5CRwAuoezbmoGq29kzA48VUN0zMwjJb4xggcdSydtGlMOj7 fyGdull7GNPbzPwNT9qwqdVdZAdsCeMlSCqfnjQD7I7U9dirJkmCU= X-Sasl-enc: 5Iwlv1yeE5AvJYxTYIagG87Hn2/zl8UEDmUUnlt8aj7o 1400081229 Received: from killi.site (unknown [173.160.167.74]) by mail.messagingengine.com (Postfix) with ESMTPA id 806A068053B; Wed, 14 May 2014 11:27:08 -0400 (EDT) Message-ID: <53738B4D.1030507@aklaver.com> Date: Wed, 14 May 2014 08:27:09 -0700 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux x86_64; 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> <53736E22.4090506@aklaver.com> <53737480.6070808@aklaver.com> <14cee66c2d5d444a8ec0c4c773f20d5b@BY2PR08MB281.namprd08.prod.outlook.com> <53737AAC.9060201@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 07:29 AM, Barry Bell wrote: > Behavior seems different if you get the text from table vs fixed value. > > The select 'ABCDE' from dual return a text(longchar, memo), > The select initcap(varcharfield) from varchartable returns varchar > The select initcap(varcharfield) from varchartable where 1=0 returns text(longchar, memo), Where are you determining the data types? In other words you run the SQL where and you see the output and data type where? > > > > Barry Bell -- 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