~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

  • Committer: Brian Aker
  • Date: 2010-02-09 21:18:30 UTC
  • mfrom: (1273.2.42)
  • Revision ID: brian@gaz-20100209211830-7vf91n0yasi0r28y
Merge Stewart.

Show diffs side-by-side

added added

removed removed

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