~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/savepoint.cc

  • Committer: Mark Atwood
  • Date: 2011-10-13 18:28:03 UTC
  • mfrom: (2433.1.5 rf1)
  • Revision ID: me@mark.atwood.name-20111013182803-pbmb3r5emfxfrbvy
mergeĀ lp:~olafvdspek/drizzle/refactor2

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
      NamedSavepoint &sv= *iter;
72
72
      const string &sv_name= sv.getName();
73
73
      if (my_strnncoll(system_charset_info,
74
 
                       (unsigned char *) lex().ident.str,
75
 
                       lex().ident.length,
 
74
                       (unsigned char *) lex().ident.data(),
 
75
                       lex().ident.size(),
76
76
                       (unsigned char *) sv_name.c_str(),
77
77
                       sv_name.size()) == 0)
78
78
        break;
84
84
      savepoints.erase(iter);
85
85
    }
86
86
    
87
 
    NamedSavepoint newsv(lex().ident.str, lex().ident.length);
 
87
    NamedSavepoint newsv(lex().ident.data(), lex().ident.size());
88
88
 
89
89
    if (TransactionServices::setSavepoint(session(), newsv))
90
90
    {