22
22
#include <drizzled/show.h>
23
23
#include <drizzled/session.h>
24
24
#include <drizzled/statement/create_schema.h>
29
34
bool statement::CreateSchema::execute()
31
41
if (! session->endActiveTransaction())
40
48
my_error(ER_WRONG_DB_NAME, MYF(0), session->lex->name.str);
43
bool res= mysql_create_db(session, session->lex->name.str, &create_info, is_if_not_exists);
51
bool res= mysql_create_db(session, normalised_database_name, &schema_message, is_if_not_exists);