added expected trigger and stored procedure output
[dbsrgits/SQL-Translator.git] / t / 46xml-to-pg.t
index 3df7849..215d42f 100644 (file)
@@ -45,7 +45,7 @@ CREATE TABLE "Basic" (
   -- Hello emptytagdef
   "emptytagdef" character varying DEFAULT '',
   "another_id" integer DEFAULT '2',
-  "timest" timestamp(0),
+  "timest" timestamp,
   PRIMARY KEY ("id"),
   CONSTRAINT "emailuniqueindex" UNIQUE ("email")
 );
@@ -65,4 +65,9 @@ CREATE VIEW "email_list" ( "email" ) AS
 ALTER TABLE "Basic" ADD FOREIGN KEY ("another_id")
   REFERENCES "Another" ("id") DEFERRABLE;
 
+CREATE TRIGGER foo_trigger after insert ON Basic update modified=timestamp();;
+
+CREATE TRIGGER bar_trigger before insert or update ON Basic update modified2=timestamp();;
+
+select foo from bar
 SQL