~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_lex.h

  • Committer: Brian Aker
  • Date: 2008-11-26 21:37:50 UTC
  • Revision ID: brian@tangent.org-20081126213750-m96j23htwfymuwlt
Collection of dead code removal

Show diffs side-by-side

added added

removed removed

Lines of Context:
802
802
    0 - indicates that this query does not need prelocking.
803
803
  */
804
804
  TableList **query_tables_own_last;
805
 
  /*
806
 
    Set of stored routines called by statement.
807
 
    (Note that we use lazy-initialization for this hash).
808
 
  */
809
 
  enum { START_SROUTINES_HASH_SIZE= 16 };
810
 
  HASH sroutines;
811
 
  /*
812
 
    List linking elements of 'sroutines' set. Allows you to add new elements
813
 
    to this set as you iterate through the list of existing elements.
814
 
    'sroutines_list_own_last' is pointer to ::next member of last element of
815
 
    this list which represents routine which is explicitly used by query.
816
 
    'sroutines_list_own_elements' number of explicitly used routines.
817
 
    We use these two members for restoring of 'sroutines_list' to the state
818
 
    in which it was right after query parsing.
819
 
  */
820
 
  SQL_LIST sroutines_list;
821
 
  unsigned char    **sroutines_list_own_last;
822
 
  uint32_t     sroutines_list_own_elements;
823
805
 
824
806
  /*
825
807
    These constructor and destructor serve for creation/destruction
860
842
      query_tables_own_last= 0;
861
843
    }
862
844
  }
863
 
 
864
 
private:
865
 
  enum enum_binlog_stmt_flag {
866
 
    BINLOG_STMT_FLAG_UNSAFE,
867
 
    BINLOG_STMT_FLAG_COUNT
868
 
  };
869
 
 
870
 
  /*
871
 
    Tells if the parsing stage detected properties of the statement,
872
 
    for example: that some items require row-based binlogging to give
873
 
    a reliable binlog/replication, or if we will use stored functions
874
 
    or triggers which themselves need require row-based binlogging.
875
 
  */
876
 
  uint32_t binlog_stmt_flags;
877
845
};
878
846
 
879
847
 
1513
1481
      on its top. So select_lex (as the first added) will be at the tail 
1514
1482
      of the list.
1515
1483
    */ 
1516
 
    if (&select_lex == all_selects_list && !sroutines.records)
 
1484
    if (&select_lex == all_selects_list)
1517
1485
    {
1518
1486
      assert(!all_selects_list->next_select_in_list());
1519
1487
      return true;