Search found 4 matches

by marcioinfo
22.10.2007, 18:34
Forum: PostgreSQL
Topic: zsqlprocessor problem with postgresql
Replies: 4
Views: 1888

I have used the script bellow CREATE OR REPLACE FUNCTION ano_mes_b_ins_upd_f() RETURNS "trigger" AS BEGIN IF NEW.mes is not null THEN IF (NEW.mes<1) or (NEW.MES> 12) THEN raise exception 'O campo mês deve ser um vlr valido(entre 1 e 12)' END IF END IF END And Setting ZSQLProcessor1.Delimit...
by marcioinfo
20.10.2007, 16:09
Forum: PostgreSQL
Topic: zsqlprocessor problem with postgresql
Replies: 4
Views: 1888

I have used like bellow: CREATE OR REPLACE FUNCTION ano_mes_b_ins_upd_f() RETURNS "trigger" AS BEGIN IF NEW.mes is not null THEN IF (NEW.mes<1) or (NEW.MES> 12) THEN raise exception 'O campo mes deve ser um valor valido(entre 1 e 12)'; END IF; END IF; END; but the error continue
by marcioinfo
30.09.2007, 14:59
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: zsqlprocessor problem with postgresql
Replies: 0
Views: 798

zsqlprocessor problem with postgresql

I am new user of Postgresql and ZeosLib. The problem is that Im trying to change DDL of my database using Zsqlprocessor Actually, trying to create the function bellow. CREATE OR REPLACE FUNCTION ano_mes_b_ins_f() RETURNS "trigger" AS $BODY$ BEGIN IF NEW.mes is not null THEN IF (NEW.mes<1) ...
by marcioinfo
30.09.2007, 14:56
Forum: PostgreSQL
Topic: zsqlprocessor problem with postgresql
Replies: 4
Views: 1888

zsqlprocessor problem with postgresql

I am new user of Postgresql and ZeosLib. The problem is that Im trying to change DDL of my database using Zsqlprocessor Actually, trying to create the function bellow. CREATE OR REPLACE FUNCTION ano_mes_b_ins_f() RETURNS "trigger" AS $BODY$ BEGIN IF NEW.mes is not null THEN IF (NEW.mes<1) ...