~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

Use List::size()

Show diffs side-by-side

added added

removed removed

Lines of Context:
3387
3387
            /* Use $2 instead of Lex->current_select as derived table will
3388
3388
               alter value of Lex->current_select. */
3389
3389
            if (!($3 || $5) && $2->embedding &&
3390
 
                !$2->embedding->getNestedJoin()->join_list.elements)
 
3390
                !$2->embedding->getNestedJoin()->join_list.size())
3391
3391
            {
3392
3392
              /* we have a derived table ($3 == NULL) but no alias,
3393
3393
                 Since we are nested in further parentheses so we
3537
3537
            }
3538
3538
            embedding= Lex->current_select->embedding;
3539
3539
            $$= embedding &&
3540
 
                !embedding->getNestedJoin()->join_list.elements;
 
3540
                !embedding->getNestedJoin()->join_list.size();
3541
3541
            /* return true if we are deeply nested */
3542
3542
          }
3543
3543
        ;