My Project
Public Member Functions | Protected Member Functions
Item_func_truth Class Reference

#include <item_cmpfunc.h>

Inheritance diagram for Item_func_truth:
Item_bool_func Item_int_func Item_func Item_result_field Item Item_func_isfalse Item_func_isnotfalse Item_func_isnottrue Item_func_istrue

List of all members.

Public Member Functions

virtual bool val_bool ()
virtual longlong val_int ()
virtual void fix_length_and_dec ()
virtual void print (String *str, enum_query_type query_type)

Protected Member Functions

 Item_func_truth (Item *a, bool a_value, bool a_affirmative)

Detailed Description

Abstract Item class, to represent X IS [NOT] (TRUE | FALSE) boolean predicates.


Member Function Documentation

void Item_func_truth::print ( String str,
enum_query_type  query_type 
) [virtual]

This method is used for to:

  • to generate a view definition query (SELECT-statement);
  • to generate a SQL-query for EXPLAIN EXTENDED;
  • to generate a SQL-query to be shown in INFORMATION_SCHEMA;
  • debug.

For more information about view definition query, INFORMATION_SCHEMA query and why they should be generated from the Item-tree,

See also:
mysql_register_view().

Reimplemented from Item_func.

bool Item_func_truth::val_bool ( ) [virtual]
Todo:
Make this functions class dependent

Reimplemented from Item.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines