Diff for scripts/perl/oracle/oracledump.pl between version 1.22 and 1.23
| version 1.22, 2008/08/21 08:23:48 |
version 1.23, 2008/08/21 08:25:11 |
|
|
| #!/usr/bin/perl |
#!/usr/bin/perl |
| |
|
| # $Platon: scripts/perl/oracle/oracledump.pl,v 1.21 2008-08-21 08:22:43 nepto Exp $ |
# $Platon: scripts/perl/oracle/oracledump.pl,v 1.22 2008-08-21 08:23:48 nepto Exp $ |
| |
|
| use strict; |
use strict; |
| |
|
| Line 652 sub escape_data($$) |
|
| Line 652 sub escape_data($$) |
|
| $value =~ s/'/\\'/g; |
$value =~ s/'/\\'/g; |
| return "'$value'"; |
return "'$value'"; |
| } |
} |
| } elsif ( $type eq 'DATE' ) { |
} elsif ($type eq 'DATE' or $type eq 'TIMESTAMP') { |
| if ( !defined $value ) { |
if ( !defined $value ) { |
| return "NULL"; |
return "NULL"; |
| } else { |
} else { |
Platon Group <platon@platon.org> http://platon.org/
|
|