~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/string_functions/quote.cc

  • Committer: Olaf van der Spek
  • Date: 2011-07-04 19:11:47 UTC
  • mto: This revision was merged to the branch mainline in revision 2367.
  • Revision ID: olafvdspek@gmail.com-20110704191147-s99ojek811zi1fzj
Remove unused Name_resolution_context::error_reporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#include "config.h"
 
20
#include <config.h>
21
21
 
22
22
#include "quote.h"
23
23
 
82
82
  for (from= (char*) arg->ptr(), end= from + arg_length; from < end; from++)
83
83
    new_length+= get_esc_bit(escmask, (unsigned char) *from);
84
84
 
85
 
  if (tmp_value.alloc(new_length))
86
 
    goto null;
 
85
  tmp_value.alloc(new_length);
87
86
 
88
87
  /*
89
88
    We replace characters from the end to the beginning
120
119
  tmp_value.set_charset(collation.collation);
121
120
  null_value= 0;
122
121
  return &tmp_value;
123
 
 
124
 
null:
125
 
  null_value= 1;
126
 
  return 0;
127
122
}
128
123
 
129
124
} /* namespace drizzled */