string escaping in tutorial/syscat.source - Mailing list pgsql-hackers

From Josh Kupershmidt
Subject string escaping in tutorial/syscat.source
Date
Msg-id CAK3UJREtO1QEi3uRWaaJBg8giOaX8fFCv7vaQoQ5RLhYTOKx5w@mail.gmail.com
Whole thread Raw
Responses string escaping in tutorial/syscat.source  (Jeff Janes <jeff.janes@gmail.com>)
Re: string escaping in tutorial/syscat.source  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi all,
It seems the queries in ./src/tutorial/syscat.source use string
escaping with the assumption that standard_conforming_strings is off,
and thus give wrong results with modern versions. A simple fix is
attached.
Josh

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Making the planner more tolerant of implicit/explicit casts
Next
From: Pavel Stehule
Date:
Subject: Re: proposal - assign result of query to psql variable