~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_insert.cc

  • Committer: Brian Aker
  • Date: 2009-02-07 22:02:41 UTC
  • Revision ID: brian@tangent.org-20090207220241-ez3828o1246ab2sp
Removing on typedeffed class.

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
  }
80
80
  else
81
81
  {                                             // Part field list
82
 
    SELECT_LEX *select_lex= &session->lex->select_lex;
 
82
    Select_Lex *select_lex= &session->lex->select_lex;
83
83
    Name_resolution_context *context= &select_lex->context;
84
84
    Name_resolution_context_state ctx_state;
85
85
    int res;
571
571
                          bool select_insert,
572
572
                          bool check_fields, bool abort_on_warning)
573
573
{
574
 
  SELECT_LEX *select_lex= &session->lex->select_lex;
 
574
  Select_Lex *select_lex= &session->lex->select_lex;
575
575
  Name_resolution_context *context= &select_lex->context;
576
576
  Name_resolution_context_state ctx_state;
577
577
  bool insert_into_view= (0 != 0);
584
584
  /*
585
585
    For subqueries in VALUES() we should not see the table in which we are
586
586
    inserting (for INSERT ... SELECT this is done by changing table_list,
587
 
    because INSERT ... SELECT share SELECT_LEX it with SELECT.
 
587
    because INSERT ... SELECT share Select_Lex it with SELECT.
588
588
  */
589
589
  if (!select_insert)
590
590
  {
591
 
    for (SELECT_LEX_UNIT *un= select_lex->first_inner_unit();
 
591
    for (Select_Lex_UNIT *un= select_lex->first_inner_unit();
592
592
         un;
593
593
         un= un->next_unit())
594
594
    {
595
 
      for (SELECT_LEX *sl= un->first_select();
 
595
      for (Select_Lex *sl= un->first_select();
596
596
           sl;
597
597
           sl= sl->next_select())
598
598
      {
1021
1021
bool mysql_insert_select_prepare(Session *session)
1022
1022
{
1023
1023
  LEX *lex= session->lex;
1024
 
  SELECT_LEX *select_lex= &lex->select_lex;
 
1024
  Select_Lex *select_lex= &lex->select_lex;
1025
1025
 
1026
1026
  /*
1027
 
    SELECT_LEX do not belong to INSERT statement, so we can't add WHERE
 
1027
    Select_Lex do not belong to INSERT statement, so we can't add WHERE
1028
1028
    clause if table is VIEW
1029
1029
  */
1030
1030
 
1066
1066
 
1067
1067
 
1068
1068
int
1069
 
select_insert::prepare(List<Item> &values, SELECT_LEX_UNIT *u)
 
1069
select_insert::prepare(List<Item> &values, Select_Lex_UNIT *u)
1070
1070
{
1071
1071
  LEX *lex= session->lex;
1072
1072
  int res;
1073
1073
  table_map map= 0;
1074
 
  SELECT_LEX *lex_current_select_save= lex->current_select;
 
1074
  Select_Lex *lex_current_select_save= lex->current_select;
1075
1075
 
1076
1076
 
1077
1077
  unit= u;
1606
1606
 
1607
1607
 
1608
1608
int
1609
 
select_create::prepare(List<Item> &values, SELECT_LEX_UNIT *u)
 
1609
select_create::prepare(List<Item> &values, Select_Lex_UNIT *u)
1610
1610
{
1611
1611
  DRIZZLE_LOCK *extra_lock= NULL;
1612
1612
  /*