Add timestamp tests, make postgres produce timestamp(0) if asked
[dbsrgits/SQL-Translator.git] / t / 44-xml-to-db2-array.t
index d20ba89..d254af9 100644 (file)
@@ -41,6 +41,7 @@ email VARCHAR(255),
 explicitnulldef VARCHAR(0),
 explicitemptystring VARCHAR(0) DEFAULT '',
 emptytagdef VARCHAR(0) DEFAULT '',
+timest TIMESTAMP,
 CONSTRAINT emailuniqueindex UNIQUE (email)   ,
  PRIMARY KEY(id)
 );|,
@@ -53,4 +54,4 @@ 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();'
 ];
 
-is_deeply(\@sql, $want, 'Got correct DB2 statements in list context');
\ No newline at end of file
+is_deeply(\@sql, $want, 'Got correct DB2 statements in list context');