add semicolon to CREATE TRIGGER after END which i have removed before accidentally
Johannes Plunien [Sat, 1 Nov 2008 20:38:13 +0000 (20:38 +0000)]
lib/SQL/Translator/Producer/Oracle.pm

index 4a3a8e0..0677910 100644 (file)
@@ -634,7 +634,7 @@ sub create_field {
           " SELECT $seq_name.nextval\n" .
           " INTO :new." . $field->name."\n" .
           " FROM dual;\n" .
-          "END\n/";
+          "END;\n/";
         ;
     }
 
@@ -647,7 +647,7 @@ sub create_field {
           "FOR EACH ROW WHEN (new.$field_name_ur IS NULL)\n".
           "BEGIN \n".
           " SELECT sysdate INTO :new.$field_name_ur FROM dual;\n".
-          "END\n/";
+          "END;\n/";
     }
 
     push @field_defs, $field_def;