Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ew8cH-0007za-3i for pgsql-committers@arkaria.postgresql.org; Wed, 14 Mar 2018 15:47:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ew8cG-0008Nj-5C for pgsql-committers@arkaria.postgresql.org; Wed, 14 Mar 2018 15:47:00 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ew8cF-0008NY-T1 for pgsql-committers@lists.postgresql.org; Wed, 14 Mar 2018 15:47:00 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ew8cD-0001rY-57; Wed, 14 Mar 2018 15:46:58 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 5BA0421144; Wed, 14 Mar 2018 11:46:56 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Wed, 14 Mar 2018 11:46:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=c6gitU gidp/Pb/Fp1TbAfZU18dYkuSKQlIFt9BuOz8A=; b=MB8Kf71NaHOBRxrQw/Vdmp ZY2lhK8GRSh4M0GCc4yem1YPuTzsKNxjFu+SBvrm/0gE0Q30LUIAn5eTOxtgEnm1 CWAYwvOw5O2AfTvYA34fQ/pjisWkWUecrimY5u+37+G5j67i29BohyxoVuNAbiEA UTxOz9Is3afXaMYAULVA9dek5zRkTkBCrNNjQ1ySVL31y7akJLIrnbDPmV//sfRp yuf0cY6lXKohV1iXsUtdJwKOz5K37lPr3IbCUa5RTMcxW07TKUd0XCtFO65G8dse cYY49MzbjTUn7/tCtTOWNqRk367NqOXu0zgiGDVNhXVTXxvRlasALtnexB3/iUJg == X-ME-Sender: Received: from april.local (static-108-2-132-194.phlapa.fios.verizon.net [108.2.132.194]) by mail.messagingengine.com (Postfix) with ESMTPA id 1BE83240CE; Wed, 14 Mar 2018 11:46:56 -0400 (EDT) Subject: Re: pgsql: Add Oracle like handling of char arrays. To: Michael Meskes , pgsql-committers@postgresql.org References: From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <70ee72e5-8ea5-83d2-90f7-3a2f4640c87a@2ndquadrant.com> Date: Wed, 14 Mar 2018 11:46:55 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 3/13/18 20:38, Michael Meskes wrote: > Add Oracle like handling of char arrays. > > In some cases Oracle Pro*C handles char array differently than ECPG. This patch > adds a Oracle compatibility mode to make ECPG behave like Pro*C. Please check these compiler warnings: char_array.pgc: In function 'main': char_array.pgc:21:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] const char *ppppp = "XXXXX"; ^~~~~ char_array.pgc: At top level: char_array.pgc:63:13: error: 'warn' was used with no prototype before its definition [-Werror=missing-prototypes] static void warn(void) ^~~~ -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services