From: Peter Rabbitson Date: Sun, 3 May 2009 02:19:09 +0000 (+0000) Subject: Adjust xml-db2 tests X-Git-Tag: v0.11008~176 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bc2ed06a8bade37c1bfdc8a918c41b6cab49474d;p=dbsrgits%2FSQL-Translator.git Adjust xml-db2 tests --- diff --git a/t/43xml-to-db2.t b/t/43xml-to-db2.t index dbedbdb..b7771b1 100644 --- a/t/43xml-to-db2.t +++ b/t/43xml-to-db2.t @@ -64,4 +64,6 @@ CREATE VIEW email_list AS SELECT email FROM Basic WHERE email IS NOT NULL; CREATE TRIGGER foo_trigger after insert ON Basic REFERENCING OLD AS oldrow NEW AS newrow FOR EACH ROW MODE DB2SQL update modified=timestamp(); + +CREATE TRIGGER bar_trigger before insert, update ON Basic REFERENCING OLD AS oldrow NEW AS newrow FOR EACH ROW MODE DB2SQL update modified2=timestamp(); SQL diff --git a/t/44-xml-to-db2-array.t b/t/44-xml-to-db2-array.t index fa73159..065fc35 100644 --- a/t/44-xml-to-db2-array.t +++ b/t/44-xml-to-db2-array.t @@ -61,7 +61,9 @@ q|CREATE TABLE Another ( 'CREATE VIEW email_list AS SELECT email FROM Basic WHERE email IS NOT NULL;', -'CREATE TRIGGER foo_trigger after insert ON Basic REFERENCING OLD AS oldrow NEW AS newrow FOR EACH ROW MODE DB2SQL update modified=timestamp();' +'CREATE TRIGGER foo_trigger after insert ON Basic REFERENCING OLD AS oldrow NEW AS newrow FOR EACH ROW MODE DB2SQL update modified=timestamp();', + +'CREATE TRIGGER bar_trigger before insert, update ON Basic REFERENCING OLD AS oldrow NEW AS newrow FOR EACH ROW MODE DB2SQL update modified2=timestamp();', ]; is_deeply(\@sql, $want, 'Got correct DB2 statements in list context');