File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -13770,6 +13770,9 @@ sub format_data_type
1377013770 } else {
1377113771 $col =~ s/^([\-]*)(\~|Inf)$/$1Infinity/i;
1377213772 }
13773+ }
13774+ else
13775+ {
1377313776 if (!$sprep) {
1377413777 $col = 'NULL' if ($col eq '');
1377513778 } else {
@@ -14563,16 +14566,19 @@ sub _remove_comments
1456314566 {
1456414567 next if ($lines[$i] !~ /\S/);
1456514568
14566- # Single line comment --...-- */ is replaced by */ only
14567- $lines[$i] =~ s/^([\t ]*)\-[\-]+\s*\*\//$1\*\//;
14568-
14569- # Check for -- and */ in the same line
14570- if ($lines[$i] =~ /(--.*)(\*\/.*)$/)
14569+ if ($lines[$i] !~ /^[\t ]*\--.*\/\*.*\*\/.*$/ and $lines[$i] !~ /\/\*.*\*\/$/)
1457114570 {
14572- $lines[$i] = $1;
14573- splice(@lines, $i + 1, 0, $2);
14571+ # Single line comment --...-- */ is replaced by */ only
14572+ $lines[$i] =~ s/^([\t ]*)\-[\-]+\s*\*\//$1\*\//;
14573+
14574+ # Check for -- and */ in the same line
14575+ if ($lines[$i] =~ /(--.*)(\*\/.*)$/)
14576+ {
14577+ $lines[$i] = $1;
14578+ splice(@lines, $i + 1, 0, $2);
14579+ }
1457414580 }
14575-
14581+
1457614582 # Single line comment --
1457714583 if ($lines[$i] =~ s/^([\t ]*\-\-.*)$/$1\%ORA2PG_COMMENT$self->{idxcomment}\%/)
1457814584 {
You can’t perform that action at this time.
0 commit comments