~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 
38
38
  if (args[0]->null_value || args[1]->null_value || args[2]->null_value ||
39
39
      args[3]->null_value)
40
 
    goto null; /* purecov: inspected */
 
40
    goto null;
41
41
 
42
42
  if ((start < 0) || (start > res->length()))
43
43
    return res;                                 // Wrong param; skip insert
50
50
 
51
51
  /* Re-testing with corrected params */
52
52
  if (start > res->length())
53
 
    return res; /* purecov: inspected */        // Wrong param; skip insert
 
53
    return res;
54
54
  if (length > res->length() - start)
55
55
    length= res->length() - start;
56
56