~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/opt_sum.cc

  • Committer: Brian Aker
  • Date: 2009-12-01 02:39:03 UTC
  • mfrom: (1234.1.4 push)
  • Revision ID: brian@gaz-20091201023903-1id5z7xnup695jaq
Merge of Brian + Jay test fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
162
162
      Schema tables are filled after this function is invoked, so we can't
163
163
      get row count
164
164
    */
165
 
    if (!(tl->table->cursor->ha_table_flags() & HA_STATS_RECORDS_IS_EXACT))
 
165
    if (!(tl->table->cursor->getEngine()->check_flag(HTON_BIT_STATS_RECORDS_IS_EXACT)))
166
166
    {
167
 
      maybe_exact_count&= test(
168
 
                               (tl->table->cursor->ha_table_flags() &
169
 
                                HA_HAS_RECORDS));
 
167
      maybe_exact_count&= test(tl->table->cursor->getEngine()->check_flag(HTON_BIT_HAS_RECORDS));
170
168
      is_exact_count= false;
171
169
      count= 1;                                 // ensure count != 0
172
170
    }