Doc: Fixed the result of the bit_count example

From: "wangzk(dot)fnstxz(at)fujitsu(dot)com" <wangzk(dot)fnstxz(at)fujitsu(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Doc: Fixed the result of the bit_count example
Date: 2021-07-29 09:23:46
Message-ID: OSZPR01MB6551FFAC1088C82C3D799BE0FAEB9@OSZPR01MB6551.jpnprd01.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello:

There is a small problem with the documentation for the previously added SQL function “bit_count”.
In the doc, (https://www.postgresql.org/docs/14/functions-binarystring.html)
“bit_count('\x1234567890'::bytea)” result is "31" , but the actual result is "15".

Similar problems have been fixed in test file (commit: ebedd0c78fc51c293abe56e99a18c67af14da0c9), but the doc has not been modified.
Regards,
Wang

Attachment Content-Type Size
0001-modify-doc-about-bit_count.patch application/octet-stream 755 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Gustafsson 2021-07-29 09:35:54 Re: Doc: Fixed the result of the bit_count example
Previous Message Michael Meskes 2021-07-29 09:22:37 Re: ECPG bug fix: DECALRE STATEMENT and DEALLOCATE, DESCRIBE