~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/sql_lex.h

Removed/replaced DBUG symbols and standardized TRUE/FALSE

Show diffs side-by-side

added added

removed removed

Lines of Context:
583
583
  Item_sum *inner_sum_func_list; /* list of sum func in nested selects */ 
584
584
  uint with_wild; /* item list contain '*' */
585
585
  bool  braces;         /* SELECT ... UNION (SELECT ... ) <- this braces */
586
 
  /* TRUE when having fix field called in processing of this SELECT */
 
586
  /* true when having fix field called in processing of this SELECT */
587
587
  bool having_fix_field;
588
588
  /* List of references to fields referenced from inner selects */
589
589
  List<Item_outer_ref> inner_refs_list;
599
599
    query processing end even if we use temporary table
600
600
  */
601
601
  bool subquery_in_having;
602
 
  /* TRUE <=> this SELECT is correlated w.r.t. some ancestor select */
 
602
  /* true <=> this SELECT is correlated w.r.t. some ancestor select */
603
603
  bool is_correlated;
604
604
  /*
605
605
    This variable is required to ensure proper work of subqueries and
821
821
    no_parts(0),
822
822
    build_method(HA_BUILD_DEFAULT),
823
823
    datetime_field(NULL),
824
 
    error_if_not_empty(FALSE)
 
824
    error_if_not_empty(false)
825
825
  {}
826
826
 
827
827
  void reset()
836
836
    no_parts= 0;
837
837
    build_method= HA_BUILD_DEFAULT;
838
838
    datetime_field= 0;
839
 
    error_if_not_empty= FALSE;
 
839
    error_if_not_empty= false;
840
840
  }
841
841
  Alter_info(const Alter_info &rhs, MEM_ROOT *mem_root);
842
842
private:
1248
1248
      The assumption is that the lexical analyser is always 1 character ahead,
1249
1249
      which the -1 account for.
1250
1250
    */
1251
 
    DBUG_ASSERT(m_ptr > m_tok_start);
 
1251
    assert(m_ptr > m_tok_start);
1252
1252
    return (uint) ((m_ptr - m_tok_start) - 1);
1253
1253
  }
1254
1254
 
1369
1369
  bool ignore_space;
1370
1370
 
1371
1371
  /**
1372
 
    TRUE if we're parsing a prepared statement: in this mode
 
1372
    true if we're parsing a prepared statement: in this mode
1373
1373
    we should allow placeholders and disallow multi-statements.
1374
1374
  */
1375
1375
  bool stmt_prepare_mode;
1593
1593
      st_lex::which_check_option_applicable()
1594
1594
 
1595
1595
    RETURN
1596
 
      TRUE   have to take 'WHITH CHECK OPTION' clause into account
1597
 
      FALSE  'WHITH CHECK OPTION' clause do not need
 
1596
      true   have to take 'WHITH CHECK OPTION' clause into account
 
1597
      false  'WHITH CHECK OPTION' clause do not need
1598
1598
  */
1599
1599
  inline bool which_check_option_applicable()
1600
1600
  {
1606
1606
    case SQLCOM_REPLACE:
1607
1607
    case SQLCOM_REPLACE_SELECT:
1608
1608
    case SQLCOM_LOAD:
1609
 
      return TRUE;
 
1609
      return true;
1610
1610
    default:
1611
 
      return FALSE;
 
1611
      return false;
1612
1612
    }
1613
1613
  }
1614
1614
 
1643
1643
  /**
1644
1644
    @brief check if the statement is a single-level join
1645
1645
    @return result of the check
1646
 
      @retval TRUE  The statement doesn't contain subqueries, unions and 
 
1646
      @retval true  The statement doesn't contain subqueries, unions and 
1647
1647
                    stored procedure calls.
1648
 
      @retval FALSE There are subqueries, UNIONs or stored procedure calls.
 
1648
      @retval false There are subqueries, UNIONs or stored procedure calls.
1649
1649
  */
1650
1650
  bool is_single_level_stmt() 
1651
1651
  { 
1656
1656
    */ 
1657
1657
    if (&select_lex == all_selects_list && !sroutines.records)
1658
1658
    {
1659
 
      DBUG_ASSERT(!all_selects_list->next_select_in_list());
1660
 
      return TRUE;
 
1659
      assert(!all_selects_list->next_select_in_list());
 
1660
      return true;
1661
1661
    }
1662
 
    return FALSE;
 
1662
    return false;
1663
1663
  }
1664
1664
} LEX;
1665
1665