Pervasive version: 9.50.077.002
Update:
--------------------
first I found my error on my simple example. I was referencing old insead of new for an insert.
CREATE TRIGGER test_insert
after insert
on test_trigger
referencing old<---error is here> as n
for each row
insert into slcust (customerid) values('test1 insert')
;
New Problem:
-----------------
I have moved on to starting to test the actual trigger I need to create. This trigger does not fire.
My current trigger is:
;create trigger slcust_UPDATE
AFTER UPDATE
ON slcust
REFERENCING new AS indata
FOR EACH ROW
INSERT INTO slcust_trx(
CustomerID,
Description,
Name,
Address1,
Address2,
City,
State ,
Zip ,
County,
Country,
Contact,
Phone ,
Fax ,
Email,
TypeID,
Active,
OpenDate,
SalespersonID,
RegionID,
CreditType,
CreditStatus,
CreditLimit,
CreditUsed,
CreditBalance,
HighestBalance,
CreditRating ,
PriceListID,
TaxCodeID,
DueTerms,
DueDays,
AuditUserID
)VALUES (indata.CustomerID,
indata.Description,
indata.Name,
indata.Address1,
indata.Address2,
indata.City,
indata.State,
indata.Zip,
indata.County,
indata.Country,
indata.Contact,
indata.Phone,
indata.Fax,
indata.Email,
indata.TypeID,
indata.Active,
indata.OpenDate,
indata.SalespersonID,
indata.RegionID,
indata.CreditType,
indata.CreditStatus,
indata.CreditLimit,
indata.CreditUsed,
indata.CreditBalance,
indata.HighestBalance,
indata.CreditRating,
indata.PriceListID,
indata.TaxCodeID,
indata.DueTerms,
indata.DueDays,
indata.AuditUserID
);
What am I missing?