~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/rem/rem0cmp.c

  • Committer: Brian Aker
  • Date: 2010-12-25 00:28:49 UTC
  • mto: This revision was merged to the branch mainline in revision 2031.
  • Revision ID: brian@tangent.org-20101225002849-g73mg6ihulajis0o
First pass in refactoring of the name of my_decimal.

Show diffs side-by-side

added added

removed removed

Lines of Context:
184
184
 
185
185
        case DATA_DECIMAL:
186
186
                /* Remove preceding spaces */
187
 
                for (; a_length && *a == ' '; a++, a_length--) {}
188
 
                for (; b_length && *b == ' '; b++, b_length--) {}
 
187
                for (; a_length && *a == ' '; a++, a_length--);
 
188
                for (; b_length && *b == ' '; b++, b_length--);
189
189
 
190
190
                if (*a == '-') {
191
191
                        if (*b != '-') {
527
527
                        != DATA_MYSQL_LATIN1_SWEDISH_CHARSET_COLL)) {
528
528
 
529
529
                        ret = cmp_whole_field(mtype, prtype,
530
 
                                              static_cast<const unsigned char *>(dfield_get_data(dtuple_field)),
 
530
                                              dfield_get_data(dtuple_field),
531
531
                                              (unsigned) dtuple_f_len,
532
532
                                              rec_b_ptr, (unsigned) rec_f_len);
533
533