~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/console/console.cc

  • Committer: Andrew Hutchings
  • Date: 2011-02-02 12:51:57 UTC
  • mto: (2157.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2158.
  • Revision ID: andrew@linuxjedi.co.uk-20110202125157-r6thh7ox4g9l90ec
Make transaction_message_threshold a read-only global variable instead of a per-session variable
Make replication_dictionary column lengths use transation_message_threshold

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
   along with this program; if not, write to the Free Software
14
14
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
15
15
 
16
 
#include <config.h>
 
16
#include "config.h"
17
17
#include <drizzled/gettext.h>
18
18
#include <drizzled/plugin/listen_tcp.h>
19
19
#include <drizzled/plugin/client.h>
180
180
    printDebug("sendEOF");
181
181
  }
182
182
 
183
 
  virtual void sendError(const drizzled::error_t sql_errno, const char *err)
 
183
  virtual void sendError(uint32_t sql_errno, const char *err)
184
184
  {
185
 
    cout << "Error: " << static_cast<long>(sql_errno) << " " << err << endl;
 
185
    cout << "Error: " << sql_errno << " " << err << endl;
186
186
  }
187
187
 
188
188
  virtual bool sendFields(List<Item> *list)
189
189
  {
190
 
    List<Item>::iterator it(list->begin());
 
190
    List_iterator_fast<Item> it(*list);
191
191
    Item *item;
192
192
 
193
193
    column= 0;
340
340
 
341
341
    if (pipe(pipe_fds) == -1)
342
342
    {
343
 
      errmsg_printf(error::ERROR, _("pipe() failed with errno %d"), errno);
 
343
      errmsg_printf(ERRMSG_LVL_ERROR, _("pipe() failed with errno %d"), errno);
344
344
      return true;
345
345
    }
346
346