~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/create_schema.cc

  • Committer: Lee Bieber
  • Date: 2011-01-08 03:39:25 UTC
  • mfrom: (2062.1.2 build)
  • Revision ID: kalebral@gmail.com-20110108033925-koobar399kwrm4ba
Merge Brian - parser clean up
Merge Marisa - latest doc updates, fix sphinx warnings

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
  }
60
60
  else
61
61
  {
62
 
    res= create_db(session, schema_message, is_if_not_exists);
 
62
    res= create_db(session, schema_message, session->getLex()->exists());
63
63
    if (unlikely(plugin::EventObserver::afterCreateDatabase(*session, path, res)))
64
64
    {
65
65
      my_error(ER_EVENT_OBSERVER_PLUGIN, MYF(0), path.c_str());
79
79
  if (not plugin::Authorization::isAuthorized(getSession()->user(), identifier))
80
80
    return false;
81
81
 
82
 
  if (not is_if_not_exists)
 
82
  if (not session->getLex()->exists())
83
83
  {
84
84
    if (plugin::StorageEngine::doesSchemaExist(identifier))
85
85
    {