Re: Fwd: BUG #4235: docu wrong for sqlerrmc[70] - Mailing list pgsql-bugs

From Bruce Momjian
Subject Re: Fwd: BUG #4235: docu wrong for sqlerrmc[70]
Date
Msg-id 200806121915.m5CJFjT01618@momjian.us
Whole thread Raw
In response to Fwd: BUG #4235: docu wrong for sqlerrmc[70]  (Robert Treat <xzilla@users.sourceforge.net>)
List pgsql-bugs
Robert Treat wrote:
> re-directing  wayward bug report...
>
> ----------  Forwarded Message  ----------
>
> Subject: BUG #4235: docu wrong for sqlerrmc[70]
> Date: Thursday 12 June 2008
> From: "Michael Enke" <michael.enke@wincor-nixdorf.com>
> To: xzilla@users.sourceforge.net
>
>
>
> The following bug has been logged online:
>
> Bug reference:      4235
> Logged by:          Michael Enke
> Email address:      michael.enke@wincor-nixdorf.com
> PostgreSQL version: 8.3.1
> Operating system:   Linux CentOS 5.1
> Description:        docu wrong for sqlerrmc[70]
> Details:
>
> In the 8.3.1 documentation, "32.11.2. sqlca" is written:
> char sqlerrmc[70];
> But a sizeof(sqlca.sqlerrm.sqlerrmc) tells me: 150

Good point. I have updated the documentation to use the same macro the C
file uses.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +
Index: doc/src/sgml/ecpg.sgml
===================================================================
RCS file: /cvsroot/pgsql/doc/src/sgml/ecpg.sgml,v
retrieving revision 1.85
diff -c -c -r1.85 ecpg.sgml
*** doc/src/sgml/ecpg.sgml    3 Dec 2007 23:49:50 -0000    1.85
--- doc/src/sgml/ecpg.sgml    12 Jun 2008 19:13:28 -0000
***************
*** 4061,4067 ****
      struct
      {
          int sqlerrml;
!         char sqlerrmc[70];
      } sqlerrm;
      char sqlerrp[8];
      long sqlerrd[6];
--- 4061,4067 ----
      struct
      {
          int sqlerrml;
!         char sqlerrmc[SQLERRMC_LEN];
      } sqlerrm;
      char sqlerrp[8];
      long sqlerrd[6];

pgsql-bugs by date:

Previous
From: Robert Treat
Date:
Subject: Fwd: BUG #4235: docu wrong for sqlerrmc[70]
Next
From: "Miracapillo Alessandro"
Date:
Subject: Purge Oid