~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/str/right.cc

  • Committer: Eric Day
  • Date: 2009-08-31 23:50:37 UTC
  • mto: This revision was merged to the branch mainline in revision 1134.
  • Revision ID: eday@oddments.org-20090831235037-hwwe6zhq94o4lxtd
Removed purecov messages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
  int64_t length= args[1]->val_int();
30
30
 
31
31
  if ((null_value=(args[0]->null_value || args[1]->null_value)))
32
 
    return 0; /* purecov: inspected */
 
32
    return 0;
33
33
 
34
34
  /* if "unsigned_flag" is set, we have a *huge* positive number. */
35
35
  if ((length <= 0) && (!args[1]->unsigned_flag))
36
 
    return &my_empty_string; /* purecov: inspected */
 
36
    return &my_empty_string;
37
37
 
38
38
  if (res->length() <= (uint64_t) length)
39
 
    return res; /* purecov: inspected */
 
39
    return res;
40
40
 
41
41
  uint32_t start=res->numchars();
42
42
  if (start <= (uint) length)