~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_error.cc

  • Committer: Mark Atwood
  • Date: 2011-08-12 04:08:33 UTC
  • mfrom: (2385.2.17 refactor5)
  • Revision ID: me@mark.atwood.name-20110812040833-u6j85nc6ahuc0dtz
mergeĀ lp:~olafvdspek/drizzle/refactor5

Show diffs side-by-side

added added

removed removed

Lines of Context:
203
203
  { C_STRING_WITH_LEN("?") }
204
204
};
205
205
 
206
 
bool show_warnings(Session *session,
207
 
                   bitset<DRIZZLE_ERROR::NUM_ERRORS> &levels_to_show)
 
206
bool show_warnings(Session *session, bitset<DRIZZLE_ERROR::NUM_ERRORS> &levels_to_show)
208
207
{
209
208
  List<Item> field_list;
210
209
 
229
228
      continue;
230
229
    if (idx > unit->select_limit_cnt)
231
230
      break;
232
 
    session->getClient()->store(warning_level_names[err->level].str,
233
 
                                warning_level_names[err->level].length);
 
231
    session->getClient()->store(warning_level_names[err->level]);
234
232
    session->getClient()->store((uint32_t) err->code);
235
233
    session->getClient()->store(err->msg, strlen(err->msg));
236
234
    if (session->getClient()->flush())