Skip to content

Commit

Permalink
Merge 3e4fee8 into 86c68a0
Browse files Browse the repository at this point in the history
  • Loading branch information
dboehmer committed Nov 27, 2018
2 parents 86c68a0 + 3e4fee8 commit b1ffcc8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions lib/SQL/Translator/Utils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use Try::Tiny;
use Carp qw(carp croak);

our $VERSION = '1.59';
our $DEFAULT_COMMENT = '-- ';
our $DEFAULT_COMMENT = '--';

use base qw(Exporter);
our @EXPORT_OK = qw(
Expand Down Expand Up @@ -111,14 +111,14 @@ sub header_comment {

my $header_comment =<<"HEADER_COMMENT";
${comment_char}
${comment_char}Created by $producer
${comment_char}Created on $now
${comment_char} Created by $producer
${comment_char} Created on $now
${comment_char}
HEADER_COMMENT

# Any additional stuff passed in
for my $additional_comment (@_) {
$header_comment .= "${comment_char}${additional_comment}\n";
$header_comment .= "${comment_char} ${additional_comment}\n";
}

return $header_comment;
Expand Down Expand Up @@ -547,7 +547,7 @@ Will give three different results; specifically:
=head2 $DEFAULT_COMMENT
This is the default comment string, '-- ' by default. Useful for
This is the default comment string, '--' by default. Useful for
C<header_comment>.
=head2 parse_mysql_version
Expand Down
2 changes: 1 addition & 1 deletion t/12header_comment.t
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use SQL::Translator::Utils qw($DEFAULT_COMMENT header_comment);
# Superfluous test, but that's ok
use_ok("SQL::Translator::Utils");

is($DEFAULT_COMMENT, '-- ', 'default comment');
is($DEFAULT_COMMENT, '--', 'default comment');
like(header_comment("foo"), qr/[-][-] Created by foo/, "Created by...");

my $comm = header_comment("My::Producer",
Expand Down

0 comments on commit b1ffcc8

Please sign in to comment.