diff options
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r-- | sql/sql_lex.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h index 5a7fa14916f..acf23d5ffa2 100644 --- a/sql/sql_lex.h +++ b/sql/sql_lex.h @@ -2348,6 +2348,20 @@ public: bool uses_stored_routines() const { return sroutines_list.elements != 0; } + void set_date_funcs_used_flag() + { + date_funcs_used_flag= true; + } + + /* + Returns TRUE if date functions such as YEAR(), MONTH() or DATE() + are used in this LEX + */ + bool are_date_funcs_used() const + { + return date_funcs_used_flag; + } + private: /** @@ -2388,6 +2402,12 @@ private: be accessed while executing a statement. */ uint32 stmt_accessed_table_flag; + + /* + Flag indicating that date functions such as YEAR(), MONTH() or DATE() are + used in this LEX + */ + bool date_funcs_used_flag= false; }; |