Skip to content

Commit

Permalink
whitespace fixes in generated sql so all tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
abraxxa committed Nov 30, 2018
1 parent 601e4ea commit 0b0163a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/SQL/Translator/Producer/Oracle.pm
Original file line number Diff line number Diff line change
Expand Up @@ -735,17 +735,18 @@ sub create_view {
my %extra = $view->extra;

my $view_type = 'VIEW';
my $view_options = '';
my $view_options = ' ';
if ( exists $extra{materialized} && $extra{materialized} ) {
$view_type = 'MATERIALIZED VIEW';
$view_options = $extra{materialized};
$view_options .= $extra{materialized} . ' ';
}

my @create;
push @create, qq[DROP $view_type $view_name]
if $options->{add_drop_view};

push @create, sprintf("CREATE $view_type %s %s AS\n%s",
push @create, sprintf("CREATE %s %s%sAS\n%s",
$view_type,
$view_name,
$view_options,
$view->sql);
Expand Down

0 comments on commit 0b0163a

Please sign in to comment.