X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F46xml-to-pg.t;h=8d8f8a6cbec65224f324bff7d3ba46d41012f482;hb=f741008213392307f73bd65e270c42b40a71e282;hp=519e806f225d051683857ebd93a0b67bf1f10a25;hpb=3b9249fb0058ac9896a10c9ca8b87ddd40f6c074;p=dbsrgits%2FSQL-Translator.git diff --git a/t/46xml-to-pg.t b/t/46xml-to-pg.t index 519e806..8d8f8a6 100644 --- a/t/46xml-to-pg.t +++ b/t/46xml-to-pg.t @@ -44,7 +44,7 @@ CREATE TABLE "Basic" ( "explicitemptystring" character varying DEFAULT '', -- Hello emptytagdef "emptytagdef" character varying DEFAULT '', - "another_id" integer DEFAULT '2', + "another_id" integer DEFAULT 2, "timest" timestamp, PRIMARY KEY ("id"), CONSTRAINT "emailuniqueindex" UNIQUE ("email"), @@ -64,6 +64,14 @@ CREATE VIEW "email_list" ( "email" ) AS SELECT email FROM Basic WHERE (email IS NOT NULL) ; +DROP TRIGGER IF EXISTS "foo_trigger"; + +CREATE TRIGGER "foo_trigger" after insert ON "Basic" update modified=timestamp();; + +DROP TRIGGER IF EXISTS "bar_trigger"; + +CREATE TRIGGER "bar_trigger" before insert OR update ON "Basic" update modified2=timestamp();; + ALTER TABLE "Basic" ADD FOREIGN KEY ("another_id") REFERENCES "Another" ("id") DEFERRABLE;