Add parenthesis into the VIEW definition to make sure the pg parser still can deal...
[dbsrgits/SQL-Translator.git] / t / 46xml-to-pg.t
index 9525160..44ef2ad 100644 (file)
@@ -21,7 +21,7 @@ my $xmlfile = "$Bin/data/xml/schema.xml";
 my $sqlt;
 $sqlt = SQL::Translator->new(
     no_comments => 1,
-    show_warnings  => 1,
+    show_warnings  => 0,
     add_drop_table => 1,
 );
 
@@ -59,7 +59,7 @@ CREATE TABLE "Another" (
 
 DROP VIEW "email_list";
 CREATE VIEW "email_list" ( "email" ) AS (
-    SELECT email FROM Basic WHERE email IS NOT NULL
+    SELECT email FROM Basic WHERE (email IS NOT NULL)
   );
 
 ALTER TABLE "Basic" ADD FOREIGN KEY ("another_id")