Thread: Fwd: BUG #4235: docu wrong for sqlerrmc[70]

Fwd: BUG #4235: docu wrong for sqlerrmc[70]

From
Robert Treat
Date:
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

-------------------------------------------------------

Re: Fwd: BUG #4235: docu wrong for sqlerrmc[70]

From
Bruce Momjian
Date:
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];