~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_error.cc

Use List::size()

Show diffs side-by-side

added added

removed removed

Lines of Context:
146
146
  if (session->handle_error(code, msg, level))
147
147
    return NULL;
148
148
 
149
 
  if (session->warn_list.elements < session->variables.max_error_count)
 
149
  if (session->warn_list.size() < 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)))