~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/replication_services.cc

Fixed bashism.

Show diffs side-by-side

added added

removed removed

Lines of Context:
376
376
  while ((current_field= *table_fields++) != NULL) 
377
377
  {
378
378
    string_value= current_field->val_str(string_value);
379
 
    record->add_insert_value(string_value->c_ptr(), string_value->length());
 
379
    record->add_insert_value(string_value->c_ptr());
380
380
    string_value->free();
381
381
  }
382
382
}
527
527
       */
528
528
      current_field->setReadSet(is_read_set);
529
529
 
530
 
      record->add_after_value(string_value->c_ptr(), string_value->length());
 
530
      record->add_after_value(string_value->c_ptr());
531
531
      string_value->free();
532
532
    }
533
533
 
539
539
    if (current_field->isReadSet())
540
540
    {
541
541
      string_value= current_field->val_str(string_value);
542
 
      record->add_key_value(string_value->c_ptr(), string_value->length());
 
542
      record->add_key_value(string_value->c_ptr());
543
543
      /**
544
544
       * @TODO Store optional old record value in the before data member
545
545
       */
637
637
    if (in_table->s->primary_key == current_field->field_index)
638
638
    {
639
639
      string_value= current_field->val_str(string_value);
640
 
      record->add_key_value(string_value->c_ptr(), string_value->length());
 
640
      record->add_key_value(string_value->c_ptr());
641
641
      /**
642
642
       * @TODO Store optional old record value in the before data member
643
643
       */
718
718
      return message::Table::Field::BIGINT;
719
719
    case DRIZZLE_TYPE_LONG:
720
720
      return message::Table::Field::INTEGER;
721
 
    case DRIZZLE_TYPE_DECIMAL:
 
721
    case DRIZZLE_TYPE_NEWDECIMAL:
722
722
      return message::Table::Field::DECIMAL;
723
723
    case DRIZZLE_TYPE_DOUBLE:
724
724
      return message::Table::Field::DOUBLE;
730
730
      return message::Table::Field::TIMESTAMP;
731
731
    case DRIZZLE_TYPE_VARCHAR:
732
732
      return message::Table::Field::VARCHAR;
733
 
    case DRIZZLE_TYPE_BLOB:
734
 
      return message::Table::Field::BLOB;
735
 
    case DRIZZLE_TYPE_ENUM:
736
 
      return message::Table::Field::ENUM;
737
733
    default:
738
734
      return message::Table::Field::VARCHAR;
739
735
  }