~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/create_schema.cc

  • Committer: Olaf van der Spek
  • Date: 2011-10-14 09:23:40 UTC
  • mto: This revision was merged to the branch mainline in revision 2438.
  • Revision ID: olafvdspek@gmail.com-20111014092340-phpah1o0umps7e63
Use size()

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
using namespace std;
36
36
 
37
 
namespace drizzled
38
 
{
 
37
namespace drizzled {
39
38
 
40
39
bool statement::CreateSchema::execute()
41
40
{
48
47
    return true;
49
48
  }
50
49
 
51
 
  identifier::Schema schema_identifier(string(lex().name.str, lex().name.length));
 
50
  identifier::Schema schema_identifier(to_string(lex().name));
52
51
  if (not check(schema_identifier))
53
52
    return false;
54
53
 
55
 
  drizzled::message::schema::init(schema_message, lex().name.str);
 
54
  drizzled::message::schema::init(schema_message, lex().name.data());
56
55
 
57
56
  message::set_definer(schema_message, *session().user());
58
57
 
117
116
}
118
117
 
119
118
} /* namespace drizzled */
120