Bug #712: Documentation Section 3.4 Binary Strings

Started by PostgreSQL Bugs Listalmost 24 years ago5 messagesbugs
Jump to latest
#1PostgreSQL Bugs List
pgsql-bugs@postgresql.org

David Clark (dclarknospam@opsi.co.za) reports a bug with a severity of 4
The lower the number the more severe it is.

Short Description
Documentation Section 3.4 Binary Strings

Long Description
In the user guide, section 3.4 binary strings

Table 3-7 SQL Literal escaped octets shows the input escape representation for a single quote as '\\'' , but the third paragraph below table 3-8 SQL Output Escaped Octets says that the single quote must be input as '\''

Also in the same paragraph mentioned above it says input for the single quote must be '\'' (or '\\134') shouldn't this be (or '\\047')

Cheers
David.

Sample Code

No file was uploaded with this report

#2Joe Conway
mail@joeconway.com
In reply to: PostgreSQL Bugs List (#1)
Re: Bug #712: Documentation Section 3.4 Binary Strings

pgsql-bugs@postgresql.org wrote:

David Clark (dclarknospam@opsi.co.za) reports a bug with a severity
Table 3-7 SQL Literal escaped octets shows the input escape
representation for a single quote as '\\'' , but the third paragraph
below table 3-8 SQL Output Escaped Octets says that the single quote
must be input as '\''

Nice catch. '\'' is correct as shown in the example in Table 3-7.

Also in the same paragraph mentioned above it says input for the
single quote must be '\'' (or '\\134') shouldn't this be (or '\\047')

Also a bug. Should be '\\047', as you pointed out.

Thanks for the report! I'll submit a patch.

Joe

#3Joe Conway
mail@joeconway.com
In reply to: PostgreSQL Bugs List (#1)
Re: [BUGS] Bug #712: Documentation Section 3.4 Binary Strings

Joe Conway wrote:

pgsql-bugs@postgresql.org wrote:

David Clark (dclarknospam@opsi.co.za) reports a bug with a severity
Table 3-7 SQL Literal escaped octets shows the input escape
representation for a single quote as '\\'' , but the third paragraph
below table 3-8 SQL Output Escaped Octets says that the single quote
must be input as '\''

Nice catch. '\'' is correct as shown in the example in Table 3-7.

Also in the same paragraph mentioned above it says input for the
single quote must be '\'' (or '\\134') shouldn't this be (or '\\047')

Also a bug. Should be '\\047', as you pointed out.

Here's a patch to fix the binary string doc errors. It also adds two
missing </option> tags in pg_restore.sgml.

Please apply.

Thanks,

Joe

Attachments:

binary-string-doc.2002.07.16.1.patch.gzapplication/x-gzip; name=binary-string-doc.2002.07.16.1.patch.gzDownload
#4Bruce Momjian
bruce@momjian.us
In reply to: Joe Conway (#3)
Re: [BUGS] Bug #712: Documentation Section 3.4 Binary Strings

Patch applied. Your CVS must be old because the pg_restore.sgml problem
was fixed days ago.

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

Joe Conway wrote:

Joe Conway wrote:

pgsql-bugs@postgresql.org wrote:

David Clark (dclarknospam@opsi.co.za) reports a bug with a severity
Table 3-7 SQL Literal escaped octets shows the input escape
representation for a single quote as '\\'' , but the third paragraph
below table 3-8 SQL Output Escaped Octets says that the single quote
must be input as '\''

Nice catch. '\'' is correct as shown in the example in Table 3-7.

Also in the same paragraph mentioned above it says input for the
single quote must be '\'' (or '\\134') shouldn't this be (or '\\047')

Also a bug. Should be '\\047', as you pointed out.

Here's a patch to fix the binary string doc errors. It also adds two
missing </option> tags in pg_restore.sgml.

Please apply.

Thanks,

Joe

[ application/x-gzip is not supported, skipping... ]

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
#5Joe Conway
mail@joeconway.com
In reply to: Bruce Momjian (#4)
Re: [BUGS] Bug #712: Documentation Section 3.4 Binary

Bruce Momjian wrote:

Patch applied. Your CVS must be old because the pg_restore.sgml problem
was fixed days ago.

Yeah, it is from July 12th -- sorry. I'll get myself back up-to-date now.

Joe