Invalid statement: Was expecting comment, or create
Error: translate: Error with parser 'SQL::Translator::Parser::DB2': no results at /usr/bin/sqlt line 290.
####
sqlt -f DB2 -t MySQl dumpdb2.sql
####
my $translator = SQL::Translator->new(
debug => 1,
trace => 0,
no_comments => 1,
show_warnings => 0,
add_drop_table => 0,
validate => 1,
);
my $output = $translator->translate(
from => 'DB2',
to => 'MySQL',
# Or an arrayref of filenames, i.e. [ $file1, $file2, $file3 ]
filename => 'test.sql',
) or die $translator->error;
print $output;