~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/create_schema.cc

fixed build warnings

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2009 Sun Microsystems
 
4
 *  Copyright (C) 2009 Sun Microsystems, Inc.
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
59
59
  }
60
60
  else
61
61
  {
62
 
    res= mysql_create_db(session, schema_message, is_if_not_exists);
 
62
    res= create_db(session, schema_message, is_if_not_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());
76
76
  if (not identifier.isValid())
77
77
    return false;
78
78
 
79
 
  if (not plugin::Authorization::isAuthorized(getSession()->getSecurityContext(), identifier))
 
79
  if (not plugin::Authorization::isAuthorized(getSession()->user(), identifier))
80
80
    return false;
81
81
 
82
82
  if (not is_if_not_exists)