~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

  • Committer: Brian Aker
  • Date: 2010-10-23 21:00:18 UTC
  • mto: This revision was merged to the branch mainline in revision 1876.
  • Revision ID: brian@tangent.org-20101023210018-ggodzmjdpkavx2xe
What was once old, is now new again. Seperated out show from select.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4800
4800
 
4801
4801
             lex->sql_command= SQLCOM_SELECT;
4802
4802
             lex->statement=
4803
 
               new(std::nothrow) statement::Select(session);
 
4803
               new(std::nothrow) statement::Show(session);
4804
4804
             if (lex->statement == NULL)
4805
4805
               DRIZZLE_YYABORT;
4806
4806
 
4840
4840
 
4841
4841
             lex->sql_command= SQLCOM_SELECT;
4842
4842
 
4843
 
             statement::Select *select=
4844
 
               new(std::nothrow) statement::Select(YYSession);
 
4843
             statement::Show *select=
 
4844
               new(std::nothrow) statement::Show(YYSession);
4845
4845
 
4846
4846
             lex->statement= select;
4847
4847
 
4900
4900
 
4901
4901
             lex->sql_command= SQLCOM_SELECT;
4902
4902
 
4903
 
             statement::Select *select=
4904
 
               new(std::nothrow) statement::Select(YYSession);
 
4903
             statement::Show *select=
 
4904
               new(std::nothrow) statement::Show(YYSession);
4905
4905
 
4906
4906
             lex->statement= select;
4907
4907
 
4923
4923
           {
4924
4924
             LEX *lex= Lex;
4925
4925
             lex->sql_command= SQLCOM_SELECT;
4926
 
             statement::Select *select=
4927
 
               new(std::nothrow) statement::Select(YYSession);
 
4926
             statement::Show *select=
 
4927
               new(std::nothrow) statement::Show(YYSession);
4928
4928
 
4929
4929
             lex->statement= select;
4930
4930
 
4965
4965
          {
4966
4966
             LEX *lex= Lex;
4967
4967
             Session *session= YYSession;
4968
 
             statement::Select *select;
 
4968
             statement::Show *select;
4969
4969
 
4970
4970
             lex->sql_command= SQLCOM_SELECT;
4971
4971
 
4972
 
             select= new(std::nothrow) statement::Select(session);
 
4972
             select= new(std::nothrow) statement::Show(session);
4973
4973
 
4974
4974
             lex->statement= select;
4975
4975
 
5007
5007
          {
5008
5008
             LEX *lex= Lex;
5009
5009
             Session *session= YYSession;
5010
 
             statement::Select *select;
 
5010
             statement::Show *select;
5011
5011
 
5012
5012
             lex->sql_command= SQLCOM_SELECT;
5013
5013
 
5014
 
             select= new(std::nothrow) statement::Select(session);
 
5014
             select= new(std::nothrow) statement::Show(session);
5015
5015
 
5016
5016
             lex->statement= select;
5017
5017
 
5048
5048
          {
5049
5049
            (void) create_select_for_variable("warning_count");
5050
5050
            LEX *lex= Lex;
5051
 
            lex->statement= new(std::nothrow) statement::Select(YYSession);
 
5051
            lex->statement= new(std::nothrow) statement::Show(YYSession);
5052
5052
            if (lex->statement == NULL)
5053
5053
              DRIZZLE_YYABORT;
5054
5054
          }
5056
5056
          {
5057
5057
            (void) create_select_for_variable("error_count");
5058
5058
            LEX *lex= Lex;
5059
 
            lex->statement= new(std::nothrow) statement::Select(YYSession);
 
5059
            lex->statement= new(std::nothrow) statement::Show(YYSession);
5060
5060
            if (lex->statement == NULL)
5061
5061
              DRIZZLE_YYABORT;
5062
5062
          }
5079
5079
             LEX *lex= Lex;
5080
5080
             lex->sql_command= SQLCOM_SELECT;
5081
5081
             lex->statement=
5082
 
               new(std::nothrow) statement::Select(YYSession);
 
5082
               new(std::nothrow) statement::Show(YYSession);
5083
5083
             if (lex->statement == NULL)
5084
5084
               DRIZZLE_YYABORT;
5085
5085
 
5117
5117
           {
5118
5118
             LEX *lex= Lex;
5119
5119
             lex->sql_command= SQLCOM_SELECT;
5120
 
             statement::Select *select=
5121
 
               new(std::nothrow) statement::Select(YYSession);
 
5120
             statement::Show *select=
 
5121
               new(std::nothrow) statement::Show(YYSession);
5122
5122
 
5123
5123
             lex->statement= select;
5124
5124
 
5158
5158
             LEX *lex= Lex;
5159
5159
             lex->sql_command= SQLCOM_SELECT;
5160
5160
             lex->statement=
5161
 
               new(std::nothrow) statement::Select(YYSession);
 
5161
               new(std::nothrow) statement::Show(YYSession);
5162
5162
             if (lex->statement == NULL)
5163
5163
               DRIZZLE_YYABORT;
5164
5164
 
5179
5179
             LEX *lex= Lex;
5180
5180
             lex->sql_command= SQLCOM_SELECT;
5181
5181
             lex->statement=
5182
 
               new(std::nothrow) statement::Select(YYSession);
 
5182
               new(std::nothrow) statement::Show(YYSession);
5183
5183
             if (lex->statement == NULL)
5184
5184
               DRIZZLE_YYABORT;
5185
5185
 
5217
5217
           {
5218
5218
             LEX *lex= Lex;
5219
5219
             lex->sql_command= SQLCOM_SELECT;
5220
 
             statement::Select *select=
5221
 
               new(std::nothrow) statement::Select(YYSession);
 
5220
             statement::Show *select=
 
5221
               new(std::nothrow) statement::Show(YYSession);
5222
5222
 
5223
5223
             lex->statement= select;
5224
5224
 
5285
5285
          describe_command table_ident
5286
5286
          {
5287
5287
            Session *session= YYSession;
5288
 
            statement::Select *select;
 
5288
            statement::Show *select;
5289
5289
            LEX *lex= Lex;
5290
5290
            lex->lock_option= TL_READ;
5291
5291
            mysql_init_select(lex);
5292
5292
            lex->current_select->parsing_place= SELECT_LIST;
5293
5293
            lex->sql_command= SQLCOM_SELECT;
5294
 
            select= new(std::nothrow) statement::Select(session);
 
5294
            select= new(std::nothrow) statement::Show(session);
5295
5295
            lex->statement= select;
5296
5296
            if (lex->statement == NULL)
5297
5297
              DRIZZLE_YYABORT;