~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_error.cc

Reverted changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
 
44
44
#include "config.h"
45
45
 
 
46
#include <cstdio>
46
47
#include <stdarg.h>
47
48
 
48
49
#include <drizzled/session.h>
64
65
*/
65
66
void DRIZZLE_ERROR::set_msg(Session *session, const char *msg_arg)
66
67
{
67
 
  msg= strdup_root(&session->warn_root, msg_arg);
 
68
  msg= session->warn_root.strdup_root(msg_arg);
68
69
}
69
70
 
70
71
/*
86
87
  if (session->getQueryId() != session->getWarningQueryId() || force)
87
88
  {
88
89
    session->setWarningQueryId(session->getQueryId());
89
 
    free_root(&session->warn_root,MYF(0));
 
90
    session->warn_root.free_root(MYF(0));
90
91
    memset(session->warn_count, 0, sizeof(session->warn_count));
91
92
    if (force)
92
93
      session->total_warn_count= 0;