~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/ref.cc

  • Committer: Brian Aker
  • Date: 2011-01-18 07:21:16 UTC
  • mfrom: (2079.3.3 session-fix)
  • Revision ID: brian@tangent.org-20110118072116-nuflltzguzhq9rgg
Merge in update so that test-run.pl runs all of test/suite and fix for
create table like and FK.

Show diffs side-by-side

added added

removed removed

Lines of Context:
247
247
                       cached_table->select_lex != outer_context->select_lex);
248
248
            }
249
249
            prev_subselect_item->used_tables_cache|= from_field->getTable()->map;
250
 
            prev_subselect_item->const_item_cache= 0;
 
250
            prev_subselect_item->const_item_cache= false;
251
251
            break;
252
252
          }
253
253
        }
255
255
 
256
256
        /* Reference is not found => depend on outer (or just error). */
257
257
        prev_subselect_item->used_tables_cache|= OUTER_REF_TABLE_BIT;
258
 
        prev_subselect_item->const_item_cache= 0;
 
258
        prev_subselect_item->const_item_cache= false;
259
259
 
260
260
        outer_context= outer_context->outer_context;
261
261
      } while (outer_context);
457
457
        type::Decimal decimal_value;
458
458
        type::Decimal *val= result_field->val_decimal(&decimal_value);
459
459
        if (val)
460
 
          return !class_decimal_is_zero(val);
 
460
          return not val->is_zero();
461
461
        return 0;
462
462
      }
463
463