~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_error.cc

  • Committer: Brian Aker
  • Date: 2011-02-08 02:06:04 UTC
  • mto: (2152.2.1 alter-table)
  • mto: This revision was merged to the branch mainline in revision 2154.
  • Revision ID: brian@tangent.org-20110208020604-p23mwd9yvamuwbwu
Merge in column varchar build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
 
42
42
***********************************************************************/
43
43
 
44
 
#include <config.h>
 
44
#include "config.h"
45
45
 
46
46
#include <cstdio>
47
47
#include <stdarg.h>
91
91
    memset(session->warn_count, 0, sizeof(session->warn_count));
92
92
    if (force)
93
93
      session->total_warn_count= 0;
94
 
    session->warn_list.clear();
 
94
    session->warn_list.empty();
95
95
    session->row_count= 1; // by default point to row 1
96
96
  }
97
97
  return;
221
221
    return true;
222
222
 
223
223
  DRIZZLE_ERROR *err;
224
 
  Select_Lex *sel= &session->getLex()->select_lex;
225
 
  Select_Lex_Unit *unit= &session->getLex()->unit;
 
224
  Select_Lex *sel= &session->lex->select_lex;
 
225
  Select_Lex_Unit *unit= &session->lex->unit;
226
226
  ha_rows idx= 0;
227
227
 
228
228
  unit->set_limit(sel);
229
229
 
230
 
  List<DRIZZLE_ERROR>::iterator it(session->warn_list.begin());
 
230
  List_iterator_fast<DRIZZLE_ERROR> it(session->warn_list);
231
231
  while ((err= it++))
232
232
  {
233
233
    /* Skip levels that the user is not interested in */