~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to lib/GenTest/App/Gendata.pm

remove CHECKSUM=1, caused more problems than was useful for. will use .ZZ files instead

Show diffs side-by-side

added added

removed removed

Lines of Context:
437
437
        }
438
438
        
439
439
        my $index_sqls = $#index_fields > -1 ? join(",\n", map { $_->[FIELD_INDEX_SQL] } @index_fields) : undef;
440
 
        # The use of CHECKSUM=1 isn't working for Drizzle, so we do a check and set the string accordingly:
441
 
        my $checksum_string = '';
442
 
        if ($executor->type() != DB_DRIZZLE)
443
 
          {
444
 
          $checksum_string = "/*! CHECKSUM=1 */"; 
445
 
          }
446
 
        
447
 
        
448
 
        $executor->execute("CREATE TABLE `$table->[TABLE_NAME]` (\n".join(",\n/*Indices*/\n", grep { defined $_ } (@field_sqls, $index_sqls) ).") $table->[TABLE_SQL] $checksum_string");
 
440
 
 
441
        $executor->execute("CREATE TABLE `$table->[TABLE_NAME]` (\n".join(",\n/*Indices*/\n", grep { defined $_ } (@field_sqls, $index_sqls) ).") ".$table->[TABLE_SQL]);
449
442
        
450
443
        if (not ($executor->type() == DB_MYSQL || 
451
444
                 $executor->type() == DB_DRIZZLE)) {