Re: escaped rolenames in pg_has_role - Mailing list pgsql-general

From Willy-Bas Loos
Subject Re: escaped rolenames in pg_has_role
Date
Msg-id 1dd6057e0706261442q150de288jc4ba731f67765eb2@mail.gmail.com
Whole thread Raw
In response to Re: escaped rolenames in pg_has_role  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
er.. i guess i was misinformed. (by Korry & Susan Douglas´ second edition, maybe this is relatively new?)
However, could you please answer my question?


On 6/26/07, Tom Lane <tgl@sss.pgh.pa.us> wrote:
"Willy-Bas Loos" <willybas@gmail.com> writes:
>> A quote in the data might be real data or quoting, and you have no way to
>> tell the difference.

> It's not so bad, because a parameter of type name cannot start with a quote.

Sure it can.

regression=# select '"Fooey"'::name;
  name
---------
"Fooey"
(1 row)

regression=# create table foo ( """Fooey""" int);
CREATE TABLE
regression=# \d foo
      Table "public.foo"
Column  |  Type   | Modifiers
---------+---------+-----------
"Fooey" | integer |

regression=#

                        regards, tom lane

pgsql-general by date:

Previous
From: Martin Langhoff
Date:
Subject: Re: LC_CTYPE and matching accented chars
Next
From: PFC
Date:
Subject: Re: Ordering in SELECT statement