Diff for scripts/perl/oracle/oracledump.pl between version 1.6 and 1.7
| version 1.6, 2004/01/22 21:45:20 |
version 1.7, 2004/01/22 22:01:37 |
|
|
| #!/usr/bin/perl |
#!/usr/bin/perl |
| |
|
| # $Platon: scripts/perl/oracledump/oracledump,v 1.5 2004/01/22 21:29:44 nepto Exp $ |
# $Platon: scripts/perl/oracledump/oracledump,v 1.6 2004/01/22 21:45:20 nepto Exp $ |
| |
|
| use strict; |
use strict; |
| |
|
| Line 568 sub escape_data($$) |
|
| Line 568 sub escape_data($$) |
|
| |
|
| if ( $type eq 'NUMBER' ) { |
if ( $type eq 'NUMBER' ) { |
| return length $value > 0 ? $value : "''"; |
return length $value > 0 ? $value : "''"; |
| } elsif ( $type eq 'VARCHAR2' ) { |
} elsif ( $type eq 'VARCHAR2' or $type eq 'CHAR') { |
| if ( !defined $value ) { |
if ( !defined $value ) { |
| return "NULL"; |
return "NULL"; |
| } else { |
} else { |
Platon Group <platon@platon.org> http://platon.org/
|
|