~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/change_schema.cc

  • Committer: Brian Aker
  • Date: 2010-01-22 00:53:13 UTC
  • Revision ID: brian@gaz-20100122005313-jmizcbcdi1lt4tcx
Revert db patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
bool statement::ChangeSchema::execute()
35
35
{
36
36
  Select_Lex *select_lex= &session->lex->select_lex;
37
 
  string database_name(select_lex->db);
38
 
  NonNormalisedDatabaseName non_normalised_database_name(database_name);
39
 
  NormalisedDatabaseName normalised_database_name(non_normalised_database_name);
 
37
  LEX_STRING db_str= { (char *) select_lex->db, strlen(select_lex->db) };
40
38
 
41
 
  if (! mysql_change_db(session, normalised_database_name, false))
 
39
  if (! mysql_change_db(session, &db_str, false))
42
40
  {
43
41
    session->my_ok();
44
42
  }