~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

fix accidental mangling of comment: s/order_st BY/ORDER BY/. in sql_parse.cc

Show diffs side-by-side

added added

removed removed

Lines of Context:
1301
1301
    This object is created for any union construct containing a union
1302
1302
    operation and also for any single select union construct of the form
1303
1303
    @verbatim
1304
 
    (SELECT ... order_st BY order_list [LIMIT n]) order_st BY ...
 
1304
    (SELECT ... ORDER BY order_list [LIMIT n]) ORDER BY ...
1305
1305
    @endvarbatim
1306
1306
    or of the form
1307
1307
    @varbatim
1308
 
    (SELECT ... order_st BY LIMIT n) order_st BY ...
 
1308
    (SELECT ... ORDER BY LIMIT n) ORDER BY ...
1309
1309
    @endvarbatim
1310
1310
 
1311
1311
  @param session_arg               thread handle
1336
1336
  fake_select_lex->select_limit= 0;
1337
1337
 
1338
1338
  fake_select_lex->context.outer_context=first_sl->context.outer_context;
1339
 
  /* allow item list resolving in fake select for order_st BY */
 
1339
  /* allow item list resolving in fake select for ORDER BY */
1340
1340
  fake_select_lex->context.resolve_in_select_list= true;
1341
1341
  fake_select_lex->context.select_lex= fake_select_lex;
1342
1342
 
1344
1344
  {
1345
1345
    /*
1346
1346
      This works only for
1347
 
      (SELECT ... order_st BY list [LIMIT n]) order_st BY order_list [LIMIT m],
1348
 
      (SELECT ... LIMIT n) order_st BY order_list [LIMIT m]
 
1347
      (SELECT ... ORDER BY list [LIMIT n]) ORDER BY order_list [LIMIT m],
 
1348
      (SELECT ... LIMIT n) ORDER BY order_list [LIMIT m]
1349
1349
      just before the parser starts processing order_list
1350
1350
    */
1351
1351
    global_parameters= fake_select_lex;