~stewart/drizzle/nofrm

« back to all changes in this revision

Viewing changes to drizzled/unireg.cc

  • Committer: Stewart Smith
  • Date: 2009-02-25 15:52:53 UTC
  • Revision ID: stewart@flamingspork.com-20090225155253-p03xf5ns2p9kkn25
correctly store virtual column expression in proto

Show diffs side-by-side

added added

removed removed

Lines of Context:
511
511
      field_options->set_type(attribute->type());
512
512
      attribute->set_type(drizzle::Table::Field::VIRTUAL);
513
513
 
514
 
      field_options->set_expression(field_arg->vcol_info->expr_str.str);
 
514
      string expr(field_arg->vcol_info->expr_str.str,
 
515
                  field_arg->vcol_info->expr_str.length);
 
516
 
 
517
      field_options->set_expression(expr);
515
518
      field_options->set_physically_stored(field_arg->is_stored);
516
519
    }
517
520