summaryrefslogtreecommitdiff
path: root/sql/structs.h
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2023-05-02 13:54:54 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2023-05-02 13:54:54 +0200
commitedf8ce5b9741520cd5b3e559af2dd7cace6b4af9 (patch)
tree20ce88b147bc64be1ab6206714d6fbcd3f40c530 /sql/structs.h
parentd821fd7fab2723b84f774aaa4882acb86b35769d (diff)
parentedd0b03e60f4cc666fbdf16e7b01b97188f2f887 (diff)
downloadmariadb-git-edf8ce5b9741520cd5b3e559af2dd7cace6b4af9.tar.gz
Merge branch 'bb-10.4-release' into bb-10.5-release
Diffstat (limited to 'sql/structs.h')
-rw-r--r--sql/structs.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/sql/structs.h b/sql/structs.h
index ecdf808f613..fc87f101174 100644
--- a/sql/structs.h
+++ b/sql/structs.h
@@ -782,6 +782,11 @@ public:
}
Item *make_item_func_trim_std(THD *thd) const;
Item *make_item_func_trim_oracle(THD *thd) const;
+ /*
+ This method is still used to handle LTRIM and RTRIM,
+ while the special syntax TRIM(... BOTH|LEADING|TRAILING)
+ is now handled by Schema::make_item_func_trim().
+ */
Item *make_item_func_trim(THD *thd) const;
};
@@ -793,6 +798,25 @@ public:
};
+class Lex_substring_spec_st
+{
+public:
+ Item *m_subject;
+ Item *m_from;
+ Item *m_for;
+ static Lex_substring_spec_st init(Item *subject,
+ Item *from,
+ Item *xfor= NULL)
+ {
+ Lex_substring_spec_st res;
+ res.m_subject= subject;
+ res.m_from= from;
+ res.m_for= xfor;
+ return res;
+ }
+};
+
+
class st_select_lex;
class Lex_select_lock