~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

  • Committer: Olaf van der Spek
  • Date: 2011-10-18 13:52:19 UTC
  • mto: This revision was merged to the branch mainline in revision 2443.
  • Revision ID: olafvdspek@gmail.com-20111018135219-vn5xhy8pvumotthk
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
911
911
  if (not table->is_derived_table() && table->db.data())
912
912
  {
913
913
    my_casedn_str(files_charset_info, table->db.str_);
914
 
    if (not schema::check(*session, identifier::Schema(table->db.data())))
 
914
    if (not schema::check(*session, identifier::Schema(table->db)))
915
915
    {
916
916
      my_error(ER_WRONG_DB_NAME, MYF(0), table->db.data());
917
917
      return NULL;