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 87469dc..44ef2ad 100644 (file)
@@ -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")