Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 2453963369C for ; Fri, 18 Jun 2010 05:06:05 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 04621-05 for ; Fri, 18 Jun 2010 08:05:57 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pw0-f46.google.com (mail-pw0-f46.google.com [209.85.160.46]) by mail.postgresql.org (Postfix) with ESMTP id 0925362DBE7 for ; Fri, 18 Jun 2010 05:05:57 -0300 (ADT) Received: by pwi1 with SMTP id 1so349295pwi.19 for ; Fri, 18 Jun 2010 01:05:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=oMOUWxitIHv1jN5vv9fm7uKBp6dLQmUMxlq1dXmpQoM=; b=APWweblWiGdizV6CKjhhWwsNgebTIW+vTHEXYH4/33O06/Rcr7rXfcTOAyuPCSYgv2 rmAECyMkf79L6jcalQEb9vA5wZYtKPKZ/atNT1RemtA1E+GauUn02lP7QfwAViLalpgm 9dVJz8L3LPbwDGcUCogqDQDQxcBjnKWJHg27g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=W1M8X7jZo5dd17zpfwDbCrKnzqmQkFwmVX/pR8pgovxr7LAtistw/aNkkg1LJ+czBx fkV6sihVY6NjusEL8SqxJtQ45j5qTfl/8XdYrs2zOL15pOgz8WEPKpGlJc/iRpuaN7OZ J1LLEweY8GdqfWoXcuAUe0lqHzwf+UxWrKHP0= Received: by 10.140.251.8 with SMTP id y8mr571773rvh.231.1276848355891; Fri, 18 Jun 2010 01:05:55 -0700 (PDT) Received: from [10.0.2.101] (p0245ed.tokyff01.ap.so-net.ne.jp [121.2.69.237]) by mx.google.com with ESMTPS id b2sm7232413rvn.19.2010.06.18.01.05.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 18 Jun 2010 01:05:54 -0700 (PDT) Message-ID: <4C1B28E1.2020700@gmail.com> Date: Fri, 18 Jun 2010 17:05:53 +0900 From: Satoshi Nagayasu User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Mark Richardson CC: pgsql-interfaces@postgresql.org Subject: Re: ECPG Documentation Improvement References: <695459.74507.qm@web53308.mail.re2.yahoo.com> In-Reply-To: <695459.74507.qm@web53308.mail.re2.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201006/3 X-Sequence-Number: 6904 Hi Mark, Thanks for the comments. On 2010/06/18 4:27, Mark Richardson wrote: > Here's some info that I found... > For conversion of Sybase .pc files to postgres .pgc files, you have to > parse the .pc file and change from sybase format to postgres format. We > used a simple script but here's what we changed the following (sybase is > first column, postgres is second - quotes are used just to indicate the > entire string, you don't need them in the search/replace) As you mentioned, I feel the embeded SQL technology has many compatibility challenges to port applications. So now I'm thinking how we can hold such compatibility tips or tricks in the manual. I'm interested in having the "Compatibility" section to gather compatibility information which depends on several RDBMSes, like "Informix compatibility mode" section. If it could be helpful, I will try it. I have to work on SQLDA stuffs to clarify its usage, because I heard that the PostgreSQL SQLDA is not compatible with Oracle's one, it's compatible with others (DB2? Sorry if it's wrong). Thus, the PostgreSQL ECPG is currently a mixture of several RDBMSes, so I want to clarify the spec and its compatibility. I guess it could be helpful for application developers. :) > I also looked up the boolean type for ecpg, the problem is in postgres > 8.0.1 (maybe later) > postgresql/src/interfaces/ecpglib/execute.c line 775 (case ECPGt_bool) > the line was I will check this, and modify the manual if we need. Regards, -- NAGAYASU Satoshi