~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/load.cc

  • Committer: Lee Bieber
  • Date: 2011-01-15 03:08:27 UTC
  • mfrom: (1994.5.38 doc)
  • mto: This revision was merged to the branch mainline in revision 2087.
  • Revision ID: kalebral@gmail.com-20110115030827-0h9s99kiknrmt9ti
Merge Stewart - some documentation clean up

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#include <config.h>
 
21
#include "config.h"
22
22
#include <drizzled/show.h>
23
23
#include <drizzled/session.h>
24
24
#include <drizzled/sql_load.h>
29
29
 
30
30
bool statement::Load::execute()
31
31
{
32
 
  TableList *first_table= (TableList *) getSession()->getLex()->select_lex.table_list.first;
33
 
  TableList *all_tables= getSession()->getLex()->query_tables;
 
32
  TableList *first_table= (TableList *) session->lex->select_lex.table_list.first;
 
33
  TableList *all_tables= session->lex->query_tables;
34
34
  assert(first_table == all_tables && first_table != 0);
35
 
  bool res= load(getSession(),
36
 
                 getSession()->getLex()->exchange,
37
 
                 first_table,
38
 
                 getSession()->getLex()->field_list,
39
 
                 getSession()->getLex()->update_list,
40
 
                 getSession()->getLex()->value_list,
41
 
                 getSession()->getLex()->duplicates,
42
 
                 getSession()->getLex()->ignore);
43
 
 
 
35
  bool res= load(session,
 
36
                       session->lex->exchange,
 
37
                       first_table,
 
38
                       session->lex->field_list,
 
39
                       session->lex->update_list,
 
40
                       session->lex->value_list,
 
41
                       session->lex->duplicates,
 
42
                       session->lex->ignore);
44
43
  return res;
45
44
}
46
45