~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/load.cc

  • Committer: Andrew Hutchings
  • Date: 2011-02-02 12:51:57 UTC
  • mto: (2157.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2158.
  • Revision ID: andrew@linuxjedi.co.uk-20110202125157-r6thh7ox4g9l90ec
Make transaction_message_threshold a read-only global variable instead of a per-session variable
Make replication_dictionary column lengths use transation_message_threshold

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 *) getSession()->lex->select_lex.table_list.first;
 
33
  TableList *all_tables= getSession()->lex->query_tables;
34
34
  assert(first_table == all_tables && first_table != 0);
35
35
  bool res= load(getSession(),
36
 
                 getSession()->getLex()->exchange,
 
36
                 getSession()->lex->exchange,
37
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);
 
38
                 getSession()->lex->field_list,
 
39
                 getSession()->lex->update_list,
 
40
                 getSession()->lex->value_list,
 
41
                 getSession()->lex->duplicates,
 
42
                 getSession()->lex->ignore);
43
43
 
44
44
  return res;
45
45
}