~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_union.cc

  • Committer: Brian Aker
  • Date: 2010-04-20 18:23:07 UTC
  • mto: This revision was merged to the branch mainline in revision 1502.
  • Revision ID: brian@gaz-20100420182307-jwyhun4vm2dtugyb
There is room for improvement around this. We should be using rows as well
in the future as a metric for disk/memory store. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
  if ((error= table->cursor->ha_write_row(table->record[0])))
67
67
  {
68
68
    /* create_myisam_from_heap will generate error if needed */
69
 
    if (table->cursor->is_fatal_error(error, HA_CHECK_DUP) &&
70
 
        create_myisam_from_heap(session, table, tmp_table_param.start_recinfo,
71
 
                                &tmp_table_param.recinfo, error, 1))
72
 
      return 1;
 
69
    if (table->cursor->is_fatal_error(error, HA_CHECK_DUP))
 
70
    {
 
71
      my_error(ER_USE_SQL_BIG_RESULT, MYF(0));
 
72
      return true;
 
73
    }
73
74
  }
74
75
  return 0;
75
76
}