MySQL 8.4.0
Source Code Documentation
sql_const_folding.h File Reference

Interface to SQL expression constant folding. More...

#include "sql/item.h"

Go to the source code of this file.

Functions

bool fold_condition (THD *thd, Item *cond, Item **retcond, Item::cond_result *cond_value, bool manifest_result=false)
 Fold boolean condition {=, <>, >, >=, <, <=, <=>} involving constants and fields (or references to fields), possibly determining if the condition is always true or false based on type range of the field, or possibly simplifying >=, <= to = if constant lies on the range border. More...
 

Detailed Description

Interface to SQL expression constant folding.