~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/rollback_to_savepoint.cc

  • Committer: Lee Bieber
  • Date: 2011-02-11 20:30:05 UTC
  • mfrom: (2157.1.3 build)
  • Revision ID: kalebral@gmail.com-20110211203005-757o1y2yf78dxzqr
Merge Stewart - 716848: drizzleimport displays wrong program_name
Merge Stewart - update README file
Merge Andrew and Joe - Exposes the InnoDB SYS_REPLICATION_LOG to data_dictionary so that it is fast and fixes many issues we have been having

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#include <config.h>
22
 
#include <drizzled/show.h>
23
 
#include <drizzled/session.h>
24
 
#include <drizzled/statement/rollback_to_savepoint.h>
25
 
#include <drizzled/transaction_services.h>
26
 
#include <drizzled/named_savepoint.h>
27
 
#include <drizzled/util/functors.h>
 
21
#include "config.h"
 
22
#include "drizzled/show.h"
 
23
#include "drizzled/session.h"
 
24
#include "drizzled/statement/rollback_to_savepoint.h"
 
25
#include "drizzled/transaction_services.h"
 
26
#include "drizzled/named_savepoint.h"
 
27
#include "drizzled/util/functors.h"
28
28
 
29
29
#include <string>
30
30
 
73
73
    my_error(ER_SP_DOES_NOT_EXIST, 
74
74
             MYF(0), 
75
75
             "SAVEPOINT", 
76
 
             getSession()->getLex()->ident.str);
 
76
             getSession()->lex->ident.str);
77
77
    return false;
78
78
  }
79
79
 
82
82
    NamedSavepoint &first_savepoint= savepoints.front();
83
83
    const string &first_savepoint_name= first_savepoint.getName();
84
84
    if (my_strnncoll(system_charset_info,
85
 
                     (unsigned char *) getSession()->getLex()->ident.str, 
86
 
                     getSession()->getLex()->ident.length,
 
85
                     (unsigned char *) getSession()->lex->ident.str, 
 
86
                     getSession()->lex->ident.length,
87
87
                     (unsigned char *) first_savepoint_name.c_str(), 
88
88
                     first_savepoint_name.size()) == 0)
89
89
    {
118
118
    const string &sv_name= sv.getName();
119
119
    if (! found && 
120
120
        my_strnncoll(system_charset_info,
121
 
                     (unsigned char *) getSession()->getLex()->ident.str, 
122
 
                     getSession()->getLex()->ident.length,
 
121
                     (unsigned char *) getSession()->lex->ident.str, 
 
122
                     getSession()->lex->ident.length,
123
123
                     (unsigned char *) sv_name.c_str(), 
124
124
                     sv_name.size()) == 0)
125
125
    {
159
159
    my_error(ER_SP_DOES_NOT_EXIST, 
160
160
             MYF(0), 
161
161
             "SAVEPOINT", 
162
 
             getSession()->getLex()->ident.str);
 
162
             getSession()->lex->ident.str);
163
163
  }
164
164
  return false;
165
165
}