~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Olaf van der Spek
  • Date: 2011-08-14 15:59:54 UTC
  • mto: This revision was merged to the branch mainline in revision 2407.
  • Revision ID: olafvdspek@gmail.com-20110814155954-zf2yu0ji8bwghnl9
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
#include <config.h>
29
29
#include <zlib.h>
30
 
#include <drizzled/query_id.h>
31
30
#include <drizzled/error.h>
32
31
#include <drizzled/function/str/strfunc.h>
33
32
 
34
33
using namespace std;
35
34
 
36
 
namespace drizzled
37
 
{
38
 
 
39
 
Item_str_func::~Item_str_func() {}
 
35
namespace drizzled {
40
36
 
41
37
bool Item_str_func::fix_fields(Session *session, Item **ref)
42
38
{
45
41
    In Item_str_func::check_well_formed_result() we may set null_value
46
42
    flag on the same condition as in test() below.
47
43
  */
48
 
  maybe_null= (maybe_null || true);
 
44
  maybe_null= true;
49
45
  return res;
50
46
}
51
47
 
52
 
 
53
48
type::Decimal *Item_str_func::val_decimal(type::Decimal *decimal_value)
54
49
{
55
50
  assert(fixed == 1);