~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

  • Committer: Brian Aker
  • Date: 2010-03-31 05:53:34 UTC
  • Revision ID: brian@gaz-20100331055334-yqqmzlgqb2xq1p5b
Mass overhaul to use schema_identifier.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4796
4796
 
4797
4797
              if ($2)
4798
4798
              {
 
4799
                SchemaIdentifier identifier($2);
4799
4800
                column_name.append($2);
4800
4801
                lex->select_lex.db= $2;
4801
 
                if (not plugin::StorageEngine::doesSchemaExist($2))
 
4802
                if (not plugin::StorageEngine::doesSchemaExist(identifier))
4802
4803
                {
4803
4804
                  my_error(ER_BAD_DB_ERROR, MYF(0), $2);
4804
4805
                }
4852
4853
             {
4853
4854
               lex->select_lex.db= $3;
4854
4855
 
4855
 
               if (not plugin::StorageEngine::doesSchemaExist($3))
 
4856
               SchemaIdentifier identifier($3);
 
4857
               if (not plugin::StorageEngine::doesSchemaExist(identifier))
4856
4858
               {
4857
4859
                 my_error(ER_BAD_DB_ERROR, MYF(0), $3);
4858
4860
               }