Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sqlserver2pgsql.pl
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ sub parse_conf_file
while (my $line = <CONF>)
{
$line =~ s/#.*//; # Remove comments
$line =~ s/\s+=\s+//; # Remove whitespaces around the =
$line =~ s/\s+=\s+/=/; # Remove whitespaces around the =
$line =~ s/\s+$//; # Remove trailing whitespaces
next
if ($line =~ /^$/); # Empty line after comments have been removed
Expand Down Expand Up @@ -1853,7 +1853,7 @@ sub parse_dump
}
$constraint->{TYPE} = 'CHECK';
$constxt =~
s/\[(\S+)\]/$1/g; # We remove the []. And hope this will parse
s/\[(\S+?)\]/$1/g; # We remove the []. And hope this will parse
$constraint->{TEXT} = $constxt;
push @{$objects->{SCHEMAS}->{$schema}->{'TABLES'}->{$table}->{CONSTRAINTS}},
($constraint);
Expand Down