~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_error.cc

  • Committer: Brian Aker
  • Date: 2009-08-17 00:51:17 UTC
  • mfrom: (1115.3.4 captain)
  • Revision ID: brian@gaz-20090817005117-j9der2dkee8pwbw5
Merge Jay

Show diffs side-by-side

added added

removed removed

Lines of Context:
197
197
  { C_STRING_WITH_LEN("?") }
198
198
};
199
199
 
200
 
bool mysqld_show_warnings(Session *session, uint32_t levels_to_show)
 
200
bool mysqld_show_warnings(Session *session,
 
201
                          bitset<DRIZZLE_ERROR::NUM_ERRORS> &levels_to_show)
201
202
{
202
203
  List<Item> field_list;
203
204
 
220
221
  while ((err= it++))
221
222
  {
222
223
    /* Skip levels that the user is not interested in */
223
 
    if (!(levels_to_show & ((ulong) 1 << err->level)))
 
224
    if (! levels_to_show.test(err->level))
224
225
      continue;
225
226
    if (++idx <= unit->offset_limit_cnt)
226
227
      continue;