Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 490E7632712 for ; Fri, 18 Jun 2010 06:53:01 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 64594-05 for ; Fri, 18 Jun 2010 09:52:53 +0000 (UTC) X-Greylist: delayed 00:12:39.249603 by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by mail.postgresql.org (Postfix) with ESMTP id 8858E632A3D for ; Fri, 18 Jun 2010 06:52:53 -0300 (ADT) Received: from feivel (exit.credativ.com [87.139.82.80]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0MBq6h-1OYaCN3rh1-00AfkS; Fri, 18 Jun 2010 11:40:09 +0200 Received: by feivel (Postfix, from userid 1000) id 249B510AB17; Fri, 18 Jun 2010 11:40:08 +0200 (CEST) Date: Fri, 18 Jun 2010 11:40:08 +0200 From: Michael Meskes To: Mark Richardson Cc: pgsql-interfaces@postgresql.org, Satoshi Nagayasu Subject: Re: ECPG Documentation Improvement Message-ID: <20100618094008.GA17483@feivel.credativ.lan> Mail-Followup-To: Mark Richardson , pgsql-interfaces@postgresql.org, Satoshi Nagayasu References: <4C19E5B9.3040002@gmail.com> <695459.74507.qm@web53308.mail.re2.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <695459.74507.qm@web53308.mail.re2.yahoo.com> User-Agent: Mutt/1.5.20 (2009-06-14) Content-Transfer-Encoding: quoted-printable X-Provags-ID: V01U2FsdGVkX1+S6QNlvapxna99h53IYU5zqfVPfxduI9Uy5xs EMQNB/maLmzCVG6aYEwbI5VPMckz5wcB2or//sMzFVCTItFlpZ 56haYaNx8X8eb8NQ74aVA== X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.8 tagged_above=-5 required=5 tests=BAYES_50=0.8, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201006/4 X-Sequence-Number: 6905 On Thu, Jun 17, 2010 at 12:27:33PM -0700, Mark Richardson wrote: > Here's some info that I found... Just a few questions to make sure I understand your correctly. > "INCLUDE SQLCA" "INCLUDE sqlca" So it's just the case of the name? We could lowercase the name in ecpg or simply install a link SQLCA.h->sqlca.h. So there is no need to change tha= t anymore. Thoughts? > "SQLCA" "struct sqlca_t" struct sqlca_t is defined in sqlca.h but I cannot see a reason why it is = used in client code. sqlca.h also defines sqlca, so it might be a case problem again. Does it still work if you replace "SQLCA" by "sqlca"? > "CS_BIT" "bool" > "CS_CHAR" "char" > "CS_INT" "int" > "CS_TINYINT" "short" > "CS_SMALLINT" "short" > "CS_REAL" "float" > "CS_FLOAT" "double" > "CS_LONG_LONG" "long long" > "CS_LONG" "int" > "CS_BINARY" "char" > "CS_TEXT" "char" > "ISOLATION LEVEL 0" "ISOLATION LEVEL READ COMMITTED" > "ISOLATION LEVEL 1" "ISOLATION LEVEL READ COMMITTED" > "ISOLATION LEVEL 2" "ISOLATION LEVEL SERIALIZABLE" We could add this in a compatibility level. > "CHAINED OFF" "CHAINED TO OFF" > "CHAINED ON" "CHAINED TO ON" These maybe too. > 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 > sprintf(mallocedval, "'%c'", (*((char *) var->value)) ? 't' : 'f'); > changed it to > sprintf(mallocedval, "'%c'", (*((char *) var->value)) ? '1' : '0'); It still uses 't' and 'f', so that's crying for the compatibility level t= oo. Michael --=20 Michael Meskes Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org) Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org ICQ 179140304, AIM/Yahoo/Skype michaelmeskes, Jabber meskes@jabber.org VfL Borussia! For=C3=A7a Bar=C3=A7a! Go SF 49ers! Use Debian GNU/Linux, P= ostgreSQL