~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_table.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-29 13:09:10 UTC
  • mto: This revision was merged to the branch mainline in revision 2362.
  • Revision ID: olafvdspek@gmail.com-20110629130910-5dj61b6rfcv0ssv7
Use std::list for Diagnostics_area::m_warn_list

Show diffs side-by-side

added added

removed removed

Lines of Context:
1818
1818
    session->lex().cleanup_after_one_table_open();
1819
1819
    session->clear_error();  // these errors shouldn't get client
1820
1820
    {
1821
 
      List<DRIZZLE_ERROR>::iterator it(session->main_da().m_warn_list.begin());
1822
 
      DRIZZLE_ERROR *err;
1823
 
      while ((err= it++))
 
1821
      BOOST_FOREACH(DRIZZLE_ERROR* err, session->main_da().m_warn_list)
1824
1822
      {
1825
1823
        session->getClient()->store(table_name.c_str());
1826
1824
        session->getClient()->store(operator_name);
1827
 
        session->getClient()->store(warning_level_names[err->level].str,
1828
 
                               warning_level_names[err->level].length);
 
1825
        session->getClient()->store(warning_level_names[err->level].str, warning_level_names[err->level].length);
1829
1826
        session->getClient()->store(err->msg);
1830
1827
        if (session->getClient()->flush())
1831
1828
          goto err;