Skip to content

Commit 1d3b4e8

Browse files
authored
Merge pull request dalibo#53 from rjuju/some_fixes
Some fixes
2 parents b289fc3 + bb8d9b5 commit 1d3b4e8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sqlserver2pgsql.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ sub parse_conf_file
101101
while (my $line = <CONF>)
102102
{
103103
$line =~ s/#.*//; # Remove comments
104-
$line =~ s/\s+=\s+//; # Remove whitespaces around the =
104+
$line =~ s/\s+=\s+/=/; # Remove whitespaces around the =
105105
$line =~ s/\s+$//; # Remove trailing whitespaces
106106
next
107107
if ($line =~ /^$/); # Empty line after comments have been removed
@@ -1853,7 +1853,7 @@ sub parse_dump
18531853
}
18541854
$constraint->{TYPE} = 'CHECK';
18551855
$constxt =~
1856-
s/\[(\S+)\]/$1/g; # We remove the []. And hope this will parse
1856+
s/\[(\S+?)\]/$1/g; # We remove the []. And hope this will parse
18571857
$constraint->{TEXT} = $constxt;
18581858
push @{$objects->{SCHEMAS}->{$schema}->{'TABLES'}->{$table}->{CONSTRAINTS}},
18591859
($constraint);

0 commit comments

Comments
 (0)