~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_error.cc

  • Committer: Monty Taylor
  • Date: 2011-02-11 22:57:37 UTC
  • mto: (2165.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 2166.
  • Revision ID: mordred@inaugust.com-20110211225737-zb9chwaonvklf94d
Provide pkg-config files and also stick drizzle plugin files in a place
where we don't conflict with our tree.

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;
146
146
  if (session->handle_error(code, msg, level))
147
147
    return NULL;
148
148
 
149
 
  if (session->warn_list.size() < session->variables.max_error_count)
 
149
  if (session->warn_list.elements < session->variables.max_error_count)
150
150
  {
151
151
    /* We have to use warn_root, as mem_root is freed after each query */
152
152
    if ((err= new (&session->warn_root) DRIZZLE_ERROR(session, code, level, msg)))
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 */