don't set schema to ->parse (->translator->schema already gets updated)
Justin Hunter [Sun, 23 Aug 2009 07:00:03 +0000 (00:00 -0700)]
lib/SQL/Translator.pm

index 5726794..72541f9 100644 (file)
@@ -104,7 +104,7 @@ class SQL::Translator {
             $self->schema;
         } elsif ($producer) {
             $self->_clear_producer;
-            $self->schema($self->parse($data)) if $data;
+            $self->parse($data) if $data;
             $self->producer($producer);
             $self->produce;
         }