Skip to content

Commit 0074fc8

Browse files
Amith NagarajappaGeorgios Mappouras
authored andcommitted
WL#16345 - Support of JSON SCHEMA functions
1. JSON SCHEMA VALID function 2. JSON SCHEMA VALIDATION REPORT function Change-Id: Ia8c15038b13ea60ab71d37600d66cb597fdf33b5
1 parent 3b5ef2e commit 0074fc8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

sql/item_func.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,9 @@ class Item_func : public Item_result_field {
351351
JSON_STORAGE_SIZE_FUNC,
352352
JSON_STORAGE_FREE_FUNC,
353353
JSON_VALUE_FUNC,
354-
JSON_SEARCH_FUNC
354+
JSON_SEARCH_FUNC,
355+
JSON_SCHEMA_VALIDATION_REPORT_FUNC,
356+
JSON_SCHEMA_VALID_FUNC
355357
};
356358
enum optimize_type {
357359
OPTIMIZE_NONE,

sql/item_json_func.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ class Item_func_json_schema_valid final : public Item_bool_func {
346346
~Item_func_json_schema_valid() override;
347347

348348
const char *func_name() const override { return "json_schema_valid"; }
349+
enum Functype functype() const override { return JSON_SCHEMA_VALID_FUNC; }
349350

350351
bool val_bool() override;
351352

@@ -373,6 +374,10 @@ class Item_func_json_schema_validation_report final : public Item_json_func {
373374
return "json_schema_validation_report";
374375
}
375376

377+
enum Functype functype() const override {
378+
return JSON_SCHEMA_VALIDATION_REPORT_FUNC;
379+
}
380+
376381
bool val_json(Json_wrapper *wr) override;
377382

378383
bool resolve_type(THD *thd) override {

0 commit comments

Comments
 (0)