~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: lbieber
  • Date: 2009-07-28 15:08:13 UTC
  • mfrom: (1100 staging)
  • mto: (1093.1.34 captain)
  • mto: This revision was merged to the branch mainline in revision 1105.
  • Revision ID: lbieber@lbieber-laptop-20090728150813-vdmchh23gbrtbo4b
fix read_many_rows_innodb test to use InnoDB instead of MyISAM for now

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