~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Brian Aker
  • Date: 2009-09-23 21:40:36 UTC
  • mfrom: (971.6.13 eday-purecov)
  • Revision ID: brian@gaz-20090923214036-bustj80ei8ysbayf
Old message removal by Eric (no actual code has been harmed in the production of
this patch...)

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
  if ((null_value=(args[0]->null_value || args[1]->null_value ||
40
40
                   (arg_count == 3 && args[2]->null_value))))
41
 
    return 0; /* purecov: inspected */
 
41
    return 0;
42
42
 
43
43
  /* Negative or zero length, will return empty string. */
44
44
  if ((arg_count == 3) && (length <= 0) &&
88
88
  {
89
89
    int32_t length= (int32_t) args[2]->val_int();
90
90
    if (length <= 0)
91
 
      max_length=0; /* purecov: inspected */
 
91
      max_length=0;
92
92
    else
93
93
      set_if_smaller(max_length,(uint) length);
94
94
  }