Skip to content

Commit

Permalink
copr: make test more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
BusyJay committed Jul 13, 2016
1 parent e988f15 commit bbd1a0f
Show file tree
Hide file tree
Showing 4 changed files with 570 additions and 326 deletions.
4 changes: 2 additions & 2 deletions src/server/coprocessor/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ fn inflate_with_col<'a, T>(eval: &mut Evaluator,
} else {
let value = match values.get(&col_id) {
None if mysql::has_not_null_flag(col.get_flag() as u64) => {
return Err(box_err!("column {} is missing", col_id));
return Err(box_err!("column {} of {} is missing", col_id, h));
}
None => Datum::Null,
Some(bs) => box_try!(bs.clone().decode_col_value(col)),
Expand Down Expand Up @@ -393,7 +393,7 @@ impl SelectContextCore {
if col.get_pk_handle() {
box_try!(datum::encode_to(row.mut_data(), &[get_pk(col, h)], false));
} else if mysql::has_not_null_flag(col.get_flag() as u64) {
return Err(box_err!("column {} is missing", col_id));
return Err(box_err!("column {} of {} is missing", col_id, h));
} else {
box_try!(datum::encode_to(row.mut_data(), &[Datum::Null], false));
}
Expand Down

0 comments on commit bbd1a0f

Please sign in to comment.