~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_union.cc

  • Committer: Olaf van der Spek
  • Date: 2011-03-23 09:39:54 UTC
  • mto: (2247.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2248.
  • Revision ID: olafvdspek@gmail.com-20110323093954-ytoq6iy28nvb5uo1
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
372
372
    result_table_list.table= table= union_result->table;
373
373
 
374
374
    session_arg->lex().current_select= lex_select_save;
375
 
    if (!item_list.size())
376
 
    {
377
 
      saved_error= table->fill_item_list(&item_list);
378
 
      if (saved_error)
379
 
        goto err;
380
 
    }
 
375
    if (item_list.is_empty())
 
376
      table->fill_item_list(item_list);
381
377
    else
382
378
    {
383
379
      /*
384
380
        We're in execution of a prepared statement or stored procedure:
385
381
        reset field items to point at fields from the created temporary table.
386
382
      */
387
 
      assert(1);
 
383
      assert(1); // Olaf: should this be assert(false)?
388
384
    }
389
385
  }
390
386