~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

Reverted my stupid hacky fix now that Padraig has it fixed for real.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4795
4795
           {
4796
4796
             LEX *lex= Lex;
4797
4797
             lex->sql_command= SQLCOM_SHOW_TABLE_STATUS;
4798
 
             void *command_mem= sql_alloc(sizeof(command::Select));
4799
 
             if (command_mem == NULL)
4800
 
               DRIZZLE_YYABORT;
4801
4798
             lex->command=
4802
 
               new(command_mem) command::Select(SQLCOM_SHOW_TABLE_STATUS,
 
4799
               new(std::nothrow) command::Select(SQLCOM_SHOW_TABLE_STATUS,
4803
4800
                                                 YYSession);
 
4801
             if (lex->command == NULL)
 
4802
               DRIZZLE_YYABORT;
4804
4803
             lex->select_lex.db= $3;
4805
4804
             if (prepare_schema_table(YYSession, lex, 0, "TABLES"))
4806
4805
               DRIZZLE_YYABORT;