diff options
author | Alexander Barkov <bar@mariadb.com> | 2023-04-29 07:39:38 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2023-04-29 08:06:46 +0400 |
commit | ddcc9d2281de9fa68525a6808e9181bbd6bf98e0 (patch) | |
tree | e8c20afd5fff69240883728b63268ed682ebd8f8 /sql/sql_schema.h | |
parent | 2e74f9d281b0251040aef2364f061c5f23e4ab21 (diff) | |
download | mariadb-git-ddcc9d2281de9fa68525a6808e9181bbd6bf98e0.tar.gz |
MDEV-31153 New methods Schema::make_item_func_* for REPLACE, SUBSTRING, TRIM
Adding virtual methods to class Schema:
make_item_func_replace()
make_item_func_substr()
make_item_func_trim()
This is a non-functional preparatory change for MDEV-27744.
Diffstat (limited to 'sql/sql_schema.h')
-rw-r--r-- | sql/sql_schema.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/sql_schema.h b/sql/sql_schema.h index 27ee0c10dce..1174bc7a83f 100644 --- a/sql/sql_schema.h +++ b/sql/sql_schema.h @@ -33,6 +33,17 @@ public: { return src; } + + // Builders for native SQL function with a special syntax in sql_yacc.yy + virtual Item *make_item_func_replace(THD *thd, + Item *subj, + Item *find, + Item *replace) const; + virtual Item *make_item_func_substr(THD *thd, + const Lex_substring_spec_st &spec) const; + + virtual Item *make_item_func_trim(THD *thd, const Lex_trim_st &spec) const; + /* For now we have *hard-coded* compatibility schemas: schema_mariadb, schema_oracle, schema_maxdb. |