summaryrefslogtreecommitdiff
path: root/sql/sql_schema.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2023-04-29 07:39:38 +0400
committerAlexander Barkov <bar@mariadb.com>2023-04-29 08:06:46 +0400
commitddcc9d2281de9fa68525a6808e9181bbd6bf98e0 (patch)
treee8c20afd5fff69240883728b63268ed682ebd8f8 /sql/sql_schema.h
parent2e74f9d281b0251040aef2364f061c5f23e4ab21 (diff)
downloadmariadb-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.h11
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.