Re: Ideas, suggestions to rules (based on a real problem) - Mailing list pgsql-general

From Georg Steffers
Subject Re: Ideas, suggestions to rules (based on a real problem)
Date
Msg-id 1048935406.2559.51.camel@georg
Whole thread Raw
In response to Ideas, suggestions to rules (based on a real problem)  (Georg Steffers <georg@steffers.org>)
List pgsql-general
Sorry, a small mistake is in the first example

Am Sam, 2003-03-29 um 11.39 schrieb Georg Steffers:
>     CREATE RULE jokus AS ON UPDATE
>              TO tab1 WHERE bit_length(OLD.f1)<bit_length(NEW.f1)
>          DO ONCE
>         UPDATE jokus SET f1=bit_set_len(f1,bit_length(NEW.f1));

must be

        CREATE RULE jokus AS ON UPDATE
             TO tab1 WHERE bit_length(OLD.f1)<bit_length(NEW.f1)
             DO ONCE
                UPDATE tab1 SET f1=bit_set_len(f1,bit_length(NEW.f1));

Best regards
   Georg Steffers


pgsql-general by date:

Previous
From: Georg Steffers
Date:
Subject: Ideas, suggestions to rules (based on a real problem)
Next
From: Peter Eisentraut
Date:
Subject: Re: System dump, but not in the default format