~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-21 15:57:11 UTC
  • mto: This revision was merged to the branch mainline in revision 2346.
  • Revision ID: olafvdspek@gmail.com-20110621155711-98dr7fyae01qdbu6
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
1072
1072
    1   otherwise
1073
1073
*/
1074
1074
 
1075
 
bool Select_Lex::init_nested_join(Session *session)
 
1075
void Select_Lex::init_nested_join(Session& session)
1076
1076
{
1077
 
  TableList* ptr= (TableList*) session->mem.calloc(ALIGN_SIZE(sizeof(TableList)) + sizeof(NestedJoin));
 
1077
  TableList* ptr= (TableList*) session.mem.calloc(ALIGN_SIZE(sizeof(TableList)) + sizeof(NestedJoin));
1078
1078
  ptr->setNestedJoin(((NestedJoin*) ((unsigned char*) ptr + ALIGN_SIZE(sizeof(TableList)))));
1079
1079
  NestedJoin* nested_join= ptr->getNestedJoin();
1080
1080
  join_list->push_front(ptr);
1084
1084
  embedding= ptr;
1085
1085
  join_list= &nested_join->join_list;
1086
1086
  join_list->clear();
1087
 
  return false; // return void
1088
1087
}
1089
1088
 
1090
1089