On Wednesday 02 July 2003 18:49, Andreas Schmitz wrote:
> Hello *,
>
> I have a litlle problem writing a plpgsql trigger function. I am in need to
> get some interpretaion of the TG_OP within an IF clause to decide with
> action will be taken. I tried it that way:
>
>          IF (TG_OP=DELETE AND check_count > 1) THEN
>
(...)
> What am I making wrong ?

Not quoting? Try:

IF (TG_OP=''DELETE'' AND check_count > 1) THEN 


Ian Barwick
[EMAIL PROTECTED]


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

Reply via email to