~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/math/ord.cc

Merge Monty's remove-charset-macros branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
  }
33
33
  null_value=0;
34
34
  if (!res->length()) return 0;
35
 
#ifdef USE_MB
36
35
  if (use_mb(res->charset()))
37
36
  {
38
37
    register const char *str=res->ptr();
43
42
      n=(n<<8)|(uint32_t)((unsigned char) *str++);
44
43
    return (int64_t) n;
45
44
  }
46
 
#endif
47
45
  return (int64_t) ((unsigned char) (*res)[0]);
48
46
}
49
47