~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/console/console.cc

  • Committer: Brian Aker
  • Date: 2011-02-01 20:31:20 UTC
  • mfrom: (2133.1.4 drizzle-build)
  • Revision ID: brian@tangent.org-20110201203120-vmp2abdbjjaua218
Merge in all of the error cleanup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
180
180
    printDebug("sendEOF");
181
181
  }
182
182
 
183
 
  virtual void sendError(uint32_t sql_errno, const char *err)
 
183
  virtual void sendError(const drizzled::error_t sql_errno, const char *err)
184
184
  {
185
 
    cout << "Error: " << sql_errno << " " << err << endl;
 
185
    cout << "Error: " << static_cast<long>(sql_errno) << " " << err << endl;
186
186
  }
187
187
 
188
188
  virtual bool sendFields(List<Item> *list)
340
340
 
341
341
    if (pipe(pipe_fds) == -1)
342
342
    {
343
 
      errmsg_printf(ERRMSG_LVL_ERROR, _("pipe() failed with errno %d"), errno);
 
343
      errmsg_printf(error::ERROR, _("pipe() failed with errno %d"), errno);
344
344
      return true;
345
345
    }
346
346