Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, October 14, 2026

Diff for scripts/perl/oracle/oracledump.pl between version 1.15 and 1.16

version 1.15, 2007/03/17 07:27:43 version 1.16, 2007/03/18 04:25:38
Line 1 
Line 1 
 #!/usr/bin/perl  #!/usr/bin/perl
   
 # $Platon: scripts/perl/oracle/oracledump.pl,v 1.14 2007-03-17 06:47:38 nepto Exp $  # $Platon: scripts/perl/oracle/oracledump.pl,v 1.15 2007-03-17 07:27:43 nepto Exp $
   
 use strict;  use strict;
   
Line 463  MARK
Line 463  MARK
   
         if ( !defined $opt_no_create_info ) {          if ( !defined $opt_no_create_info ) {
             if ($opt_mysql_compliant_dump) {              if ($opt_mysql_compliant_dump) {
                 printf( " %1s%-22s %-15s %-21s %-8s\n",                  printf( " %1s%-32s %-15s %-21s %-8s\n",
                     ( $c != 1 ? ',' : ' ' ),                      ( $c != 1 ? ',' : ' ' ),
                     lc( $row[0] ),                      '`'.lc( $row[0] ).'`',
                     ( $row[1] eq 'NUMBER'                      ( $row[1] eq 'NUMBER'
                         ? ( int($row[4]) > 0                          ? ( int($row[4]) > 0
                             ? 'DECIMAL(' . $row[3] . ', ' . $row[4] . ')'                              ? 'DECIMAL(' . $row[3] . ', ' . $row[4] . ')'
Line 578  MARK
Line 578  MARK
         $sth = $dbh->prepare($query);          $sth = $dbh->prepare($query);
         $sth->execute() || die $DBI::errstr;          $sth->execute() || die $DBI::errstr;
   
           if ($opt_mysql_compliant_dump) {
                   foreach (@column_names) {
                           $_ = '`'.$_.'`';
                   }
           }
   
         while (@row = $sth->fetchrow_array())          while (@row = $sth->fetchrow_array())
         {          {
             print <<MARK;              print <<MARK;

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top