Skip to content

Commit

Permalink
Fix call to escape_copy/escape_insert function call.
Browse files Browse the repository at this point in the history
  • Loading branch information
darold committed Mar 27, 2016
1 parent bb07339 commit 81b6705
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Ora2Pg.pm
Original file line number Diff line number Diff line change
Expand Up @@ -8959,7 +8959,7 @@ sub format_data_type
} elsif (($src_type =~ /CLOB/i) && ($data_type =~ /(char|text|xml)/i)) {
$col = $self->_escape_lob($col, 'CLOB', $data_type);
} elsif ($data_type =~ /(char|text|xml)/i) {
$col = $self->escape_copy($col);
$col = $self->escape_insert($col);
} elsif ($data_type =~ /(date|time)/i) {
if ($col =~ /^0000-00-00/) {
if (!$self->{replace_zero_date}) {
Expand Down Expand Up @@ -9002,7 +9002,7 @@ sub format_data_type
} elsif (($src_type =~ /CLOB/i) && ($data_type =~ /(char|text|xml)/i)) {
$col = $self->_escape_lob($col, 'CLOB', $data_type);
} elsif ($data_type =~ /(char|text|xml)/i) {
$col = $self->escape_insert($col);
$col = $self->escape_copy($col);
} elsif ($data_type =~ /(date|time)/i) {
if ($col =~ /^0000-00-00/) {
if (!$self->{replace_zero_date}) {
Expand Down

0 comments on commit 81b6705

Please sign in to comment.