Re: PL/PGSQL - character varying as function argument

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Chris Baechle" <bangular(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PL/PGSQL - character varying as function argument
Date: 2008-09-26 13:47:40
Message-ID: 15617.1222436860@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Chris Baechle" <bangular(at)gmail(dot)com> writes:
> When I try to run it with:
> select user_checkCredentials("asdf");

> I get the error:
> ERROR: column "asdf" does not exist

You're confused about single quotes (literal strings) versus double
quotes (identifiers).

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Raymond O'Donnell 2008-09-26 13:52:47 Re: PL/PGSQL - character varying as function argument
Previous Message Raymond O'Donnell 2008-09-26 13:41:29 Re: PL/PGSQL - character varying as function argument