~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pbxt/src/ha_pbxt.cc

  • Committer: Brian Aker
  • Date: 2010-12-16 04:01:22 UTC
  • mfrom: (1996.2.1 compare)
  • Revision ID: brian@tangent.org-20101216040122-eodh5shwsij35ybe
Merge in uuid tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2505
2505
        nr_int_val = nr->val_int();
2506
2506
        tab = ot->ot_table;
2507
2507
 
2508
 
        if (nr->cmp((const unsigned char *)&tab->tab_auto_inc) > 0) {
 
2508
        if (nr->cmp_internal((const unsigned char *)&tab->tab_auto_inc) > 0) {
2509
2509
                xt_spinlock_lock(&tab->tab_ainc_lock);
2510
2510
 
2511
 
                if (nr->cmp((const unsigned char *)&tab->tab_auto_inc) > 0) {
2512
 
                        /* {PRE-INC}
2513
 
                         * We increment later, so just set the value!
2514
 
                        MX_ULONGLONG_T nr_int_val_plus_one = nr_int_val + 1;
2515
 
                        if (nr->cmp((const unsigned char *)&nr_int_val_plus_one) < 0)
2516
 
                                tab->tab_auto_inc = nr_int_val_plus_one;
2517
 
                        else
2518
 
                         */
2519
 
                        tab->tab_auto_inc = nr_int_val;
2520
 
                }
 
2511
                if (nr->cmp_internal((const unsigned char *)&tab->tab_auto_inc) > 0) {
 
2512
                  /* {PRE-INC}
 
2513
                   * We increment later, so just set the value!
 
2514
                   MX_ULONGLONG_T nr_int_val_plus_one = nr_int_val + 1;
 
2515
                   if (nr->cmp((const unsigned char *)&nr_int_val_plus_one) < 0)
 
2516
                   tab->tab_auto_inc = nr_int_val_plus_one;
 
2517
                   else
 
2518
                 */
 
2519
                  tab->tab_auto_inc = nr_int_val;
 
2520
                }
2521
2521
                xt_spinlock_unlock(&tab->tab_ainc_lock);
2522
2522
        }
2523
2523