From: | Ferindo Middleton Jr <fmiddleton(at)verizon(dot)net> |
---|---|
To: | John DeSoi <desoi(at)pgedit(dot)com> |
Cc: | "'pgsql-sql(at)postgresql(dot)org' SQL" <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: incorrect syntax for 'plpgsql' function to test boolean |
Date: | 2005-08-07 05:25:04 |
Message-ID: | 42F59B30.7080807@verizon.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Yeah, I guess so..... I just didn't want the compiler to think I was
trying to assign the value..... And I also figured out that instead of
the &&, I needed to just say AND.... Thanks.
Ferindo
John DeSoi wrote:
>
> On Aug 6, 2005, at 10:52 PM, Ferindo Middleton Jr wrote:
>
>> ERROR: operator does not exist: boolean == boolean
>> HINT: No operator matches the given name and argument type(s). You
>> may need to add explicit type casts.
>> CONTEXT: SQL statement "SELECT (( $1 == true) && ( $2 == true))"
>> PL/pgSQL function
>> "trigger_insert_update_registration_and_attendance" line 13 at if
>>
>> What is wrong with my syntax above?
>>
>
> Too much C programming :). You just want a single equal sign.
>
> select true = true;
> ?column?
> ----------
> t
> (1 row)
>
>
>
>
> John DeSoi, Ph.D.
> http://pgedit.com/
> Power Tools for PostgreSQL
>
>
--
Ferindo Middleton
Chief Architect
Sleekcollar.com
From | Date | Subject | |
---|---|---|---|
Next Message | Mischa Sandberg | 2005-08-07 06:55:41 | Re: sum but not grouped by? |
Previous Message | John DeSoi | 2005-08-07 03:18:20 | Re: incorrect syntax for 'plpgsql' function to test boolean values |