~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/user_var_entry.cc

  • Committer: Tim Penhey
  • Date: 2010-01-20 02:39:01 UTC
  • mto: This revision was merged to the branch mainline in revision 1275.
  • Revision ID: tim.penhey@canonical.com-20100120023901-8teeunid6gwlthzx
Add in a rot 13 function.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include <drizzled/session.h>
22
22
#include "drizzled/internal/m_string.h"
23
23
 
24
 
namespace drizzled
25
 
{
26
 
 
27
24
/** Get the value of a variable as a double. */
28
25
 
29
26
double user_var_entry::val_real(bool *null_value)
43
40
    return result;
44
41
  }
45
42
  case STRING_RESULT:
46
 
    return internal::my_atof(value);                      // This is null terminated
 
43
    return my_atof(value);                      // This is null terminated
47
44
  case ROW_RESULT:
48
45
    assert(1);                          // Impossible
49
46
    break;
73
70
  case STRING_RESULT:
74
71
  {
75
72
    int error;
76
 
    return internal::my_strtoll10(value, (char**) 0, &error);// String is null terminated
 
73
    return my_strtoll10(value, (char**) 0, &error);// String is null terminated
77
74
  }
78
75
  case ROW_RESULT:
79
76
    assert(1);                          // Impossible
207
204
 
208
205
  return false;
209
206
}
210
 
 
211
 
} /* namespace drizzled */