Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WkdMn-0003KG-C5 for pgsql-odbc@arkaria.postgresql.org; Wed, 14 May 2014 17:53:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WkdMm-0005lX-QP for pgsql-odbc@arkaria.postgresql.org; Wed, 14 May 2014 17:53:20 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wkb7P-0004yN-Ex for pgsql-odbc@postgresql.org; Wed, 14 May 2014 15:29:19 +0000 Received: from mail-bn1lp0141.outbound.protection.outlook.com ([207.46.163.141] helo=na01-bn1-obe.outbound.protection.outlook.com) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wkb7L-0001cv-LK for pgsql-odbc@postgresql.org; Wed, 14 May 2014 15:29:18 +0000 Received: from BY2PR08MB281.namprd08.prod.outlook.com (10.242.237.145) by BY2PR08MB281.namprd08.prod.outlook.com (10.242.237.145) with Microsoft SMTP Server (TLS) id 15.0.939.12; Wed, 14 May 2014 15:29:13 +0000 Received: from BY2PR08MB281.namprd08.prod.outlook.com ([169.254.7.145]) by BY2PR08MB281.namprd08.prod.outlook.com ([169.254.7.145]) with mapi id 15.00.0939.000; Wed, 14 May 2014 15:29:13 +0000 From: Barry Bell To: Adrian Klaver , Hiroshi Saito , Michael Paquier , "Hiroshi Inoue" CC: Heikki Linnakangas , Anna Gershnik , "pgsql-odbc@postgresql.org" Subject: Re: psqlODBC text length with no records Thread-Topic: [ODBC] psqlODBC text length with no records Thread-Index: Ac9uszh7MQJ/2SP6QOaa9NAxMqce9AAWBOuAABmcwZAAAJz2AAAAaKCQAABwCgAAAA7PoAAA5BUAAAAcmYAAAM7XAAAAFtnwAAJjf4AAAAW5MA== Date: Wed, 14 May 2014 15:29:13 +0000 Message-ID: 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> <53738B4D.1030507@aklaver.com> In-Reply-To: <53738B4D.1030507@aklaver.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [63.95.64.254] x-forefront-prvs: 0211965D06 x-forefront-antispam-report: SFV:NSPM; SFS:(10019001)(6009001)(428001)(199002)(189002)(51704005)(38414003)(479174003)(377454003)(24454002)(13464003)(86362001)(81542001)(19580395003)(46102001)(83322001)(2656002)(74502001)(54356999)(87936001)(85852003)(99396002)(99286001)(81342001)(21056001)(4396001)(76576001)(101416001)(74316001)(19580405001)(76176999)(77982001)(20776003)(92566001)(66066001)(64706001)(83072002)(76482001)(33646001)(74662001)(31966008)(50986999)(79102001)(80022001)(24736002); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR08MB281; H:BY2PR08MB281.namprd08.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (: hartehanks.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Barry.Bell@hartehanks.com; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hartehanks.com 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 Sending the SQL through the postgres driver to a Postgres ver 9 server, whe= re it runs, I see the data types in the client software that is calling the ODBC driver (in this case VFP, foxpro). 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 hartehanks.com / linkedin / twitter / facebook -----Original Message----- From: Adrian Klaver [mailto:adrian.klaver@aklaver.com]=20 Sent: Wednesday, May 14, 2014 11:27 AM To: Barry Bell; Hiroshi Saito; Michael Paquier; Hiroshi Inoue Cc: Heikki Linnakangas; Anna Gershnik; pgsql-odbc@postgresql.org Subject: Re: [ODBC] psqlODBC text length with no records 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=20 > The select initcap(varcharfield) from varchartable where 1=3D0 returns=20 > 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 w= here? > > > > Barry Bell --=20 Adrian Klaver adrian.klaver@aklaver.com --=20 Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc