diff options
author | Sergei Golubchik <serg@mariadb.org> | 2019-02-15 20:31:24 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2019-02-15 20:31:58 +0100 |
commit | 28f18aa7a6bb0da125f0ba3cb9da3720fa620501 (patch) | |
tree | 1b26e15e88c898170859d724b8afbe4b2a63f09b /sql/sql_lex.cc | |
parent | a44f2c3ee88783a0f7fa535124a91a013860b021 (diff) | |
parent | 62c0ac2da66f8e26d5bbf79f3a7dac56cad34f5e (diff) | |
download | mariadb-git-bb-10.4-mdev16188.tar.gz |
Merge branch '10.4' into bb-10.4-mdev16188bb-10.4-mdev16188
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r-- | sql/sql_lex.cc | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc index f5e37446b58..df4d8d7b94c 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -9587,21 +9587,3 @@ bool LEX::sp_proc_stmt_statement_finalize(THD *thd, bool no_lookahead) lip->get_tok_start()); return LEX::sp_proc_stmt_statement_finalize_buf(thd, qbuf); } - - -/** - Create JSON_VALID(field_name) expression -*/ - -Virtual_column_info *make_json_valid_expr(THD *thd, LEX_CSTRING *field_name) -{ - Lex_ident_sys_st str; - Item *field, *expr; - str.set_valid_utf8(field_name); - if (unlikely(!(field= thd->lex->create_item_ident_field(thd, NullS, NullS, - &str)))) - return 0; - if (unlikely(!(expr= new (thd->mem_root) Item_func_json_valid(thd, field)))) - return 0; - return add_virtual_expression(thd, expr); -} |