Re: [SQL] incorrect syntax for 'plpgsql' function to test boolean

2005-08-06 Thread Ferindo Middleton Jr
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

Re: [SQL] incorrect syntax for 'plpgsql' function to test boolean values

2005-08-06 Thread John DeSoi
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

[SQL] incorrect syntax for 'plpgsql' function to test boolean values

2005-08-06 Thread Ferindo Middleton Jr
I'm trying to write a function and trigger to validate that user data entry for boolean values makes sense before being inserted or updated into my database. I have the following trigger: CREATE TRIGGER trigger_registration_and_attendance BEFORE INSERT OR UPDATE ON registration_and_attendance F