Diff for scripts/perl/oracle/oracledump.pl between version 1.18 and 1.19
| version 1.18, 2007/03/27 16:57:32 |
version 1.19, 2007/03/27 18:10:07 |
|
|
| #!/usr/bin/perl |
#!/usr/bin/perl |
| |
|
| # $Platon: scripts/perl/oracle/oracledump.pl,v 1.17 2007-03-27 16:26:41 nepto Exp $ |
# $Platon: scripts/perl/oracle/oracledump.pl,v 1.18 2007-03-27 16:57:32 nepto Exp $ |
| |
|
| use strict; |
use strict; |
| |
|
| Line 388 foreach $table (@opt_tables) |
|
| Line 388 foreach $table (@opt_tables) |
|
| my $table_out; |
my $table_out; |
| |
|
| $table_out = $table; |
$table_out = $table; |
| $table_out = lc $table_out if defined $opt_mysql_compliant_dump; |
|
| $table = uc $table; |
$table = uc $table; |
| |
if (defined $opt_mysql_compliant_dump) { |
| |
$table_out = lc $table_out; |
| |
$table_out = "`$table_out`"; |
| |
} |
| |
|
| |
|
| ## Print table structure |
## Print table structure |
| Line 402 foreach $table (@opt_tables) |
|
| Line 405 foreach $table (@opt_tables) |
|
| print <<MARK; |
print <<MARK; |
| |
|
| $CM |
$CM |
| $CM Table structure for table '$table_out' |
$CM Table structure for table: $table_out |
| $CM |
$CM |
| MARK |
MARK |
| ## Print drop table if requested |
## Print drop table if requested |
|
|
| print <<MARK; |
print <<MARK; |
| |
|
| $CM |
$CM |
| $CM Dumping data for table '$table_out' |
$CM Dumping data for table: $table_out |
| @{[ (scalar @opt_where > 0) |
@{[ (scalar @opt_where > 0) |
| ? "$CM WHERE: " . join(' AND ', @opt_where) . "\n$CM\n" |
? "$CM WHERE: " . join(' AND ', @opt_where) . "\n$CM\n" |
| : "$CM\n" ]} |
: "$CM\n" ]} |
Platon Group <platon@platon.org> http://platon.org/
|
|