Linux business72.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
LiteSpeed
: 162.0.229.97 | : 18.218.180.238
Cant Read [ /etc/named.conf ]
8.1.30
temmmp
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
include /
mysql /
server /
private /
[ HOME SHELL ]
Name
Size
Permission
Action
atomic
[ DIR ]
drwxr-xr-x
aligned.h
1.11
KB
-rw-r--r--
aria_backup.h
1.51
KB
-rw-r--r--
assume_aligned.h
2.29
KB
-rw-r--r--
authors.h
9.9
KB
-rw-r--r--
backup.h
1.66
KB
-rw-r--r--
bounded_queue.h
6.67
KB
-rw-r--r--
client_settings.h
1.89
KB
-rw-r--r--
compat56.h
2.23
KB
-rw-r--r--
config.h
14.2
KB
-rw-r--r--
contributors.h
2.92
KB
-rw-r--r--
create_options.h
4.26
KB
-rw-r--r--
create_tmp_table.h
2.74
KB
-rw-r--r--
cset_narrowing.h
3.88
KB
-rw-r--r--
custom_conf.h
1.06
KB
-rw-r--r--
datadict.h
1.66
KB
-rw-r--r--
ddl_log.h
12.39
KB
-rw-r--r--
debug.h
1.21
KB
-rw-r--r--
debug_sync.h
2
KB
-rw-r--r--
derived_handler.h
2.32
KB
-rw-r--r--
derror.h
980
B
-rw-r--r--
des_key_file.h
1.21
KB
-rw-r--r--
discover.h
1.53
KB
-rw-r--r--
dur_prop.h
1.06
KB
-rw-r--r--
embedded_priv.h
1.69
KB
-rw-r--r--
event_data_objects.h
4.09
KB
-rw-r--r--
event_db_repository.h
3.56
KB
-rw-r--r--
event_parse_data.h
2.83
KB
-rw-r--r--
event_queue.h
3.36
KB
-rw-r--r--
event_scheduler.h
3.21
KB
-rw-r--r--
events.h
4.59
KB
-rw-r--r--
field.h
214.94
KB
-rw-r--r--
field_comp.h
1.15
KB
-rw-r--r--
filesort.h
7.11
KB
-rw-r--r--
filesort_utils.h
8
KB
-rw-r--r--
ft_global.h
3.04
KB
-rw-r--r--
gcalc_slicescan.h
16.87
KB
-rw-r--r--
gcalc_tools.h
11.62
KB
-rw-r--r--
grant.h
2.69
KB
-rw-r--r--
group_by_handler.h
3.25
KB
-rw-r--r--
gstream.h
2.38
KB
-rw-r--r--
ha_handler_stats.h
2.2
KB
-rw-r--r--
ha_partition.h
62.72
KB
-rw-r--r--
ha_sequence.h
5.82
KB
-rw-r--r--
handle_connections_win.h
884
B
-rw-r--r--
handler.h
196.07
KB
-rw-r--r--
hash.h
4.34
KB
-rw-r--r--
hash_filo.h
5.55
KB
-rw-r--r--
heap.h
9.2
KB
-rw-r--r--
hostname.h
5.29
KB
-rw-r--r--
ilist.h
6.88
KB
-rw-r--r--
init.h
852
B
-rw-r--r--
innodb_priv.h
1.29
KB
-rw-r--r--
item.h
268.14
KB
-rw-r--r--
item_cmpfunc.h
131.55
KB
-rw-r--r--
item_create.h
11.22
KB
-rw-r--r--
item_func.h
132.88
KB
-rw-r--r--
item_geofunc.h
38
KB
-rw-r--r--
item_jsonfunc.h
22
KB
-rw-r--r--
item_row.h
5.1
KB
-rw-r--r--
item_strfunc.h
70.44
KB
-rw-r--r--
item_subselect.h
56.06
KB
-rw-r--r--
item_sum.h
70.52
KB
-rw-r--r--
item_timefunc.h
63
KB
-rw-r--r--
item_vers.h
4.29
KB
-rw-r--r--
item_windowfunc.h
33.51
KB
-rw-r--r--
item_xmlfunc.h
4.5
KB
-rw-r--r--
json_table.h
9.41
KB
-rw-r--r--
key.h
2
KB
-rw-r--r--
keycaches.h
1.95
KB
-rw-r--r--
lex.h
29.13
KB
-rw-r--r--
lex_string.h
3.97
KB
-rw-r--r--
lex_symbol.h
1.29
KB
-rw-r--r--
lf.h
6.31
KB
-rw-r--r--
lock.h
2.15
KB
-rw-r--r--
log.h
45
KB
-rw-r--r--
log_event.h
181.83
KB
-rw-r--r--
log_event_data_type.h
1.85
KB
-rw-r--r--
log_event_old.h
19.37
KB
-rw-r--r--
log_slow.h
2.38
KB
-rw-r--r--
maria.h
5.73
KB
-rw-r--r--
mariadb.h
1.25
KB
-rw-r--r--
mdl.h
37.57
KB
-rw-r--r--
mem_root_array.h
6.94
KB
-rw-r--r--
message.h
1.17
KB
-rw-r--r--
multi_range_read.h
22.58
KB
-rw-r--r--
my_alarm.h
2.37
KB
-rw-r--r--
my_apc.h
4.64
KB
-rw-r--r--
my_atomic.h
7.11
KB
-rw-r--r--
my_atomic_wrapper.h
2.98
KB
-rw-r--r--
my_base.h
26.5
KB
-rw-r--r--
my_bit.h
5.98
KB
-rw-r--r--
my_bitmap.h
5.74
KB
-rw-r--r--
my_check_opt.h
2.56
KB
-rw-r--r--
my_compare.h
10.93
KB
-rw-r--r--
my_counter.h
1.68
KB
-rw-r--r--
my_cpu.h
4.04
KB
-rw-r--r--
my_crypt.h
904
B
-rw-r--r--
my_decimal.h
14.15
KB
-rw-r--r--
my_default.h
1.84
KB
-rw-r--r--
my_handler_errors.h
4.74
KB
-rw-r--r--
my_json_writer.h
17.95
KB
-rw-r--r--
my_libwrap.h
1.16
KB
-rw-r--r--
my_md5.h
1.45
KB
-rw-r--r--
my_minidump.h
848
B
-rw-r--r--
my_nosys.h
1.4
KB
-rw-r--r--
my_rdtsc.h
8.23
KB
-rw-r--r--
my_rnd.h
1.04
KB
-rw-r--r--
my_service_manager.h
2
KB
-rw-r--r--
my_stack_alloc.h
3.76
KB
-rw-r--r--
my_stacktrace.h
3.14
KB
-rw-r--r--
my_time.h
10.22
KB
-rw-r--r--
my_tree.h
3.9
KB
-rw-r--r--
my_uctype.h
67.9
KB
-rw-r--r--
my_user.h
1.1
KB
-rw-r--r--
myisam.h
17.11
KB
-rw-r--r--
myisamchk.h
4.61
KB
-rw-r--r--
myisammrg.h
4.78
KB
-rw-r--r--
myisampack.h
14.58
KB
-rw-r--r--
mysqld.h
39.87
KB
-rw-r--r--
mysqld_default_groups.h
204
B
-rw-r--r--
mysqld_suffix.h
1.17
KB
-rw-r--r--
mysys_err.h
2.95
KB
-rw-r--r--
opt_range.h
58.19
KB
-rw-r--r--
opt_subselect.h
14.21
KB
-rw-r--r--
opt_trace.h
8.29
KB
-rw-r--r--
opt_trace_context.h
3.21
KB
-rw-r--r--
parse_file.h
4.28
KB
-rw-r--r--
partition_element.h
5.09
KB
-rw-r--r--
partition_info.h
18.85
KB
-rw-r--r--
password.h
1.14
KB
-rw-r--r--
pfs_file_provider.h
3.08
KB
-rw-r--r--
pfs_idle_provider.h
1.35
KB
-rw-r--r--
pfs_memory_provider.h
1.59
KB
-rw-r--r--
pfs_metadata_provider.h
1.85
KB
-rw-r--r--
pfs_socket_provider.h
2.21
KB
-rw-r--r--
pfs_stage_provider.h
1.52
KB
-rw-r--r--
pfs_statement_provider.h
4.25
KB
-rw-r--r--
pfs_table_provider.h
2.56
KB
-rw-r--r--
pfs_thread_provider.h
5.43
KB
-rw-r--r--
pfs_transaction_provider.h
2.78
KB
-rw-r--r--
privilege.h
27.97
KB
-rw-r--r--
probes_mysql.h
973
B
-rw-r--r--
probes_mysql_dtrace.h
32.23
KB
-rw-r--r--
probes_mysql_nodtrace.h
4.89
KB
-rw-r--r--
procedure.h
6.63
KB
-rw-r--r--
protocol.h
12.2
KB
-rw-r--r--
proxy_protocol.h
548
B
-rw-r--r--
queues.h
3.46
KB
-rw-r--r--
records.h
3.07
KB
-rw-r--r--
repl_failsafe.h
1.55
KB
-rw-r--r--
replication.h
15.73
KB
-rw-r--r--
rijndael.h
1.67
KB
-rw-r--r--
rowid_filter.h
15.19
KB
-rw-r--r--
rpl_constants.h
3.28
KB
-rw-r--r--
rpl_filter.h
4.43
KB
-rw-r--r--
rpl_gtid.h
13.36
KB
-rw-r--r--
rpl_injector.h
9.43
KB
-rw-r--r--
rpl_mi.h
14.64
KB
-rw-r--r--
rpl_parallel.h
17.05
KB
-rw-r--r--
rpl_record.h
1.55
KB
-rw-r--r--
rpl_record_old.h
1.37
KB
-rw-r--r--
rpl_reporting.h
3.63
KB
-rw-r--r--
rpl_rli.h
31.98
KB
-rw-r--r--
rpl_tblmap.h
3.1
KB
-rw-r--r--
rpl_utility.h
9.4
KB
-rw-r--r--
scheduler.h
3.12
KB
-rw-r--r--
scope.h
1.76
KB
-rw-r--r--
select_handler.h
2.18
KB
-rw-r--r--
semisync.h
2.23
KB
-rw-r--r--
semisync_master.h
25
KB
-rw-r--r--
semisync_master_ack_receiver.h
8.5
KB
-rw-r--r--
semisync_slave.h
3.65
KB
-rw-r--r--
service_versions.h
2
KB
-rw-r--r--
session_tracker.h
13.96
KB
-rw-r--r--
set_var.h
16.1
KB
-rw-r--r--
slave.h
11.99
KB
-rw-r--r--
socketpair.h
842
B
-rw-r--r--
source_revision.h
67
B
-rw-r--r--
sp.h
22.05
KB
-rw-r--r--
sp_cache.h
2
KB
-rw-r--r--
sp_head.h
63.14
KB
-rw-r--r--
sp_pcontext.h
24.31
KB
-rw-r--r--
sp_rcontext.h
14
KB
-rw-r--r--
span.h
3.84
KB
-rw-r--r--
spatial.h
21.78
KB
-rw-r--r--
sql_acl.h
13.8
KB
-rw-r--r--
sql_admin.h
2.85
KB
-rw-r--r--
sql_alloc.h
1.69
KB
-rw-r--r--
sql_alter.h
14.88
KB
-rw-r--r--
sql_analyse.h
11.24
KB
-rw-r--r--
sql_analyze_stmt.h
12.38
KB
-rw-r--r--
sql_array.h
6.84
KB
-rw-r--r--
sql_audit.h
13.62
KB
-rw-r--r--
sql_base.h
25.07
KB
-rw-r--r--
sql_basic_types.h
9.3
KB
-rw-r--r--
sql_binlog.h
895
B
-rw-r--r--
sql_bitmap.h
7.66
KB
-rw-r--r--
sql_bootstrap.h
1.77
KB
-rw-r--r--
sql_cache.h
21.15
KB
-rw-r--r--
sql_callback.h
1.51
KB
-rw-r--r--
sql_class.h
259.7
KB
-rw-r--r--
sql_cmd.h
9.13
KB
-rw-r--r--
sql_connect.h
3.98
KB
-rw-r--r--
sql_const.h
10.72
KB
-rw-r--r--
sql_crypt.h
1.4
KB
-rw-r--r--
sql_cte.h
16.15
KB
-rw-r--r--
sql_cursor.h
2.26
KB
-rw-r--r--
sql_db.h
2.38
KB
-rw-r--r--
sql_debug.h
5.51
KB
-rw-r--r--
sql_delete.h
1.31
KB
-rw-r--r--
sql_derived.h
1.26
KB
-rw-r--r--
sql_digest.h
3.73
KB
-rw-r--r--
sql_digest_stream.h
1.53
KB
-rw-r--r--
sql_do.h
954
B
-rw-r--r--
sql_error.h
38.58
KB
-rw-r--r--
sql_explain.h
28.34
KB
-rw-r--r--
sql_expression_cache.h
4.26
KB
-rw-r--r--
sql_get_diagnostics.h
7.68
KB
-rw-r--r--
sql_handler.h
2.84
KB
-rw-r--r--
sql_help.h
995
B
-rw-r--r--
sql_hset.h
3.33
KB
-rw-r--r--
sql_i_s.h
8.04
KB
-rw-r--r--
sql_insert.h
2.39
KB
-rw-r--r--
sql_join_cache.h
47.53
KB
-rw-r--r--
sql_lex.h
168.03
KB
-rw-r--r--
sql_lifo_buffer.h
9.45
KB
-rw-r--r--
sql_limit.h
3.11
KB
-rw-r--r--
sql_list.h
21.92
KB
-rw-r--r--
sql_load.h
1.25
KB
-rw-r--r--
sql_locale.h
2.64
KB
-rw-r--r--
sql_manager.h
960
B
-rw-r--r--
sql_mode.h
6.58
KB
-rw-r--r--
sql_parse.h
8.43
KB
-rw-r--r--
sql_partition.h
11.79
KB
-rw-r--r--
sql_partition_admin.h
5.8
KB
-rw-r--r--
sql_plist.h
7.55
KB
-rw-r--r--
sql_plugin.h
7.39
KB
-rw-r--r--
sql_plugin_compat.h
2.18
KB
-rw-r--r--
sql_prepare.h
11.14
KB
-rw-r--r--
sql_priv.h
17.94
KB
-rw-r--r--
sql_profile.h
7.63
KB
-rw-r--r--
sql_reload.h
1.01
KB
-rw-r--r--
sql_rename.h
982
B
-rw-r--r--
sql_repl.h
2.97
KB
-rw-r--r--
sql_schema.h
3.23
KB
-rw-r--r--
sql_select.h
86.26
KB
-rw-r--r--
sql_sequence.h
5.06
KB
-rw-r--r--
sql_servers.h
1.74
KB
-rw-r--r--
sql_show.h
9.39
KB
-rw-r--r--
sql_signal.h
3.28
KB
-rw-r--r--
sql_sort.h
21.5
KB
-rw-r--r--
sql_statistics.h
12.16
KB
-rw-r--r--
sql_string.h
38.75
KB
-rw-r--r--
sql_table.h
9.39
KB
-rw-r--r--
sql_tablespace.h
956
B
-rw-r--r--
sql_test.h
1.55
KB
-rw-r--r--
sql_time.h
8.18
KB
-rw-r--r--
sql_trigger.h
11.85
KB
-rw-r--r--
sql_truncate.h
2.03
KB
-rw-r--r--
sql_tvc.h
2.36
KB
-rw-r--r--
sql_type.h
287.89
KB
-rw-r--r--
sql_type_fixedbin.h
62.67
KB
-rw-r--r--
sql_type_fixedbin_storage.h
5.34
KB
-rw-r--r--
sql_type_geom.h
18.64
KB
-rw-r--r--
sql_type_int.h
9.77
KB
-rw-r--r--
sql_type_json.h
6.01
KB
-rw-r--r--
sql_type_real.h
1.23
KB
-rw-r--r--
sql_type_string.h
1.59
KB
-rw-r--r--
sql_udf.h
4.74
KB
-rw-r--r--
sql_union.h
1.04
KB
-rw-r--r--
sql_update.h
1.88
KB
-rw-r--r--
sql_view.h
2.41
KB
-rw-r--r--
sql_window.h
6.65
KB
-rw-r--r--
ssl_compat.h
3.07
KB
-rw-r--r--
strfunc.h
2.22
KB
-rw-r--r--
structs.h
25.74
KB
-rw-r--r--
sys_vars_shared.h
2.67
KB
-rw-r--r--
t_ctype.h
5.51
KB
-rw-r--r--
table.h
110.83
KB
-rw-r--r--
table_cache.h
4.13
KB
-rw-r--r--
thr_alarm.h
2.86
KB
-rw-r--r--
thr_lock.h
7.18
KB
-rw-r--r--
thr_malloc.h
1.17
KB
-rw-r--r--
thr_timer.h
1.53
KB
-rw-r--r--
thread_cache.h
5.77
KB
-rw-r--r--
threadpool.h
4.7
KB
-rw-r--r--
threadpool_generic.h
3.88
KB
-rw-r--r--
threadpool_winsockets.h
2.24
KB
-rw-r--r--
transaction.h
1.43
KB
-rw-r--r--
tzfile.h
4.9
KB
-rw-r--r--
tztime.h
3.32
KB
-rw-r--r--
uniques.h
4.1
KB
-rw-r--r--
unireg.h
7.54
KB
-rw-r--r--
vers_string.h
2.47
KB
-rw-r--r--
violite.h
9.85
KB
-rw-r--r--
waiting_threads.h
4.43
KB
-rw-r--r--
welcome_copyright_notice.h
1.19
KB
-rw-r--r--
win_tzname_data.h
6.35
KB
-rw-r--r--
winservice.h
1.17
KB
-rw-r--r--
wqueue.h
1.53
KB
-rw-r--r--
wsrep.h
3.23
KB
-rw-r--r--
wsrep_applier.h
1.89
KB
-rw-r--r--
wsrep_binlog.h
3.36
KB
-rw-r--r--
wsrep_client_service.h
2.5
KB
-rw-r--r--
wsrep_client_state.h
1.53
KB
-rw-r--r--
wsrep_condition_variable.h
1.45
KB
-rw-r--r--
wsrep_high_priority_service.h
4.8
KB
-rw-r--r--
wsrep_mutex.h
1.19
KB
-rw-r--r--
wsrep_mysqld.h
20.55
KB
-rw-r--r--
wsrep_mysqld_c.h
1.2
KB
-rw-r--r--
wsrep_on.h
1.68
KB
-rw-r--r--
wsrep_priv.h
1.6
KB
-rw-r--r--
wsrep_schema.h
4.57
KB
-rw-r--r--
wsrep_server_service.h
3.45
KB
-rw-r--r--
wsrep_server_state.h
2.19
KB
-rw-r--r--
wsrep_sst.h
3.86
KB
-rw-r--r--
wsrep_storage_service.h
1.77
KB
-rw-r--r--
wsrep_thd.h
10.38
KB
-rw-r--r--
wsrep_trans_observer.h
17.81
KB
-rw-r--r--
wsrep_types.h
997
B
-rw-r--r--
wsrep_utils.h
9.07
KB
-rw-r--r--
wsrep_var.h
4.38
KB
-rw-r--r--
wsrep_xid.h
1.42
KB
-rw-r--r--
xa.h
1.8
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : item_create.h
/* Copyright (c) 2000, 2010, Oracle and/or its affiliates. Copyright (c) 2008, 2022, MariaDB This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */ /* Functions to create an item. Used by sql/sql_yacc.yy */ #ifndef ITEM_CREATE_H #define ITEM_CREATE_H #include "item_func.h" // Cast_target typedef struct st_udf_func udf_func; /** Public function builder interface. The parser (sql/sql_yacc.yy) uses a factory / builder pattern to construct an <code>Item</code> object for each function call. All the concrete function builders implements this interface, either directly or indirectly with some adapter helpers. Keeping the function creation separated from the bison grammar allows to simplify the parser, and avoid the need to introduce a new token for each function, which has undesirable side effects in the grammar. */ class Create_func { public: /** The builder create method. Given the function name and list or arguments, this method creates an <code>Item</code> that represents the function call. In case or errors, a NULL item is returned, and an error is reported. Note that the <code>thd</code> object may be modified by the builder. In particular, the following members/methods can be set/called, depending on the function called and the function possible side effects. <ul> <li><code>thd->lex->binlog_row_based_if_mixed</code></li> <li><code>thd->lex->current_context()</code></li> <li><code>thd->lex->safe_to_cache_query</code></li> <li><code>thd->lex->uncacheable(UNCACHEABLE_SIDEEFFECT)</code></li> <li><code>thd->lex->uncacheable(UNCACHEABLE_RAND)</code></li> <li><code>thd->lex->add_time_zone_tables_to_query_tables(thd)</code></li> </ul> @param thd The current thread @param name The function name @param item_list The list of arguments to the function, can be NULL @return An item representing the parsed function call, or NULL */ virtual Item *create_func(THD *thd, const LEX_CSTRING *name, List<Item> *item_list) = 0; protected: /** Constructor */ Create_func() = default; /** Destructor */ virtual ~Create_func() = default; }; /** Adapter for functions that takes exactly zero arguments. */ class Create_func_arg0 : public Create_func { public: Item *create_func(THD *thd, const LEX_CSTRING *name, List<Item> *item_list) override; /** Builder method, with no arguments. @param thd The current thread @return An item representing the function call */ virtual Item *create_builder(THD *thd) = 0; protected: /** Constructor. */ Create_func_arg0() = default; /** Destructor. */ virtual ~Create_func_arg0() = default; }; /** Adapter for functions that takes exactly one argument. */ class Create_func_arg1 : public Create_func { public: Item *create_func(THD *thd, const LEX_CSTRING *name, List<Item> *item_list) override; /** Builder method, with one argument. @param thd The current thread @param arg1 The first argument of the function @return An item representing the function call */ virtual Item *create_1_arg(THD *thd, Item *arg1) = 0; protected: /** Constructor. */ Create_func_arg1() = default; /** Destructor. */ virtual ~Create_func_arg1() = default; }; /** Adapter for functions that takes exactly two arguments. */ class Create_func_arg2 : public Create_func { public: Item *create_func(THD *thd, const LEX_CSTRING *name, List<Item> *item_list) override; /** Builder method, with two arguments. @param thd The current thread @param arg1 The first argument of the function @param arg2 The second argument of the function @return An item representing the function call */ virtual Item *create_2_arg(THD *thd, Item *arg1, Item *arg2) = 0; protected: /** Constructor. */ Create_func_arg2() = default; /** Destructor. */ virtual ~Create_func_arg2() = default; }; /** Adapter for functions that takes exactly three arguments. */ class Create_func_arg3 : public Create_func { public: Item *create_func(THD *thd, const LEX_CSTRING *name, List<Item> *item_list) override; /** Builder method, with three arguments. @param thd The current thread @param arg1 The first argument of the function @param arg2 The second argument of the function @param arg3 The third argument of the function @return An item representing the function call */ virtual Item *create_3_arg(THD *thd, Item *arg1, Item *arg2, Item *arg3) = 0; protected: /** Constructor. */ Create_func_arg3() = default; /** Destructor. */ virtual ~Create_func_arg3() = default; }; /** Adapter for native functions with a variable number of arguments. The main use of this class is to discard the following calls: <code>foo(expr1 AS name1, expr2 AS name2, ...)</code> which are syntactically correct (the syntax can refer to a UDF), but semantically invalid for native functions. */ class Create_native_func : public Create_func { public: Item *create_func(THD *thd, const LEX_CSTRING *name, List<Item> *item_list) override; /** Builder method, with no arguments. @param thd The current thread @param name The native function name @param item_list The function parameters, none of which are named @return An item representing the function call */ virtual Item *create_native(THD *thd, const LEX_CSTRING *name, List<Item> *item_list) = 0; protected: /** Constructor. */ Create_native_func() = default; /** Destructor. */ virtual ~Create_native_func() = default; }; /** Function builder for qualified functions. This builder is used with functions call using a qualified function name syntax, as in <code>db.func(expr, expr, ...)</code>. */ class Create_qfunc : public Create_func { public: /** The builder create method, for unqualified functions. This builder will use the current database for the database name. @param thd The current thread @param name The function name @param item_list The list of arguments to the function, can be NULL @return An item representing the parsed function call */ Item *create_func(THD *thd, const LEX_CSTRING *name, List<Item> *item_list) override; /** The builder create method, for qualified functions. @param thd The current thread @param db The database name @param name The function name @param use_explicit_name Should the function be represented as 'db.name'? @param item_list The list of arguments to the function, can be NULL @return An item representing the parsed function call */ virtual Item *create_with_db(THD *thd, const LEX_CSTRING *db, const LEX_CSTRING *name, bool use_explicit_name, List<Item> *item_list) = 0; protected: /** Constructor. */ Create_qfunc() = default; /** Destructor. */ virtual ~Create_qfunc() = default; }; /** Find the function builder for qualified functions. @param thd The current thread @return A function builder for qualified functions */ extern Create_qfunc * find_qualified_function_builder(THD *thd); #ifdef HAVE_DLOPEN /** Function builder for User Defined Functions. */ class Create_udf_func : public Create_func { public: Item *create_func(THD *thd, const LEX_CSTRING *name, List<Item> *item_list) override; /** The builder create method, for User Defined Functions. @param thd The current thread @param fct The User Defined Function metadata @param item_list The list of arguments to the function, can be NULL @return An item representing the parsed function call */ Item *create(THD *thd, udf_func *fct, List<Item> *item_list); /** Singleton. */ static Create_udf_func s_singleton; protected: /** Constructor. */ Create_udf_func() = default; /** Destructor. */ virtual ~Create_udf_func() = default; }; #endif struct Native_func_registry { LEX_CSTRING name; Create_func *builder; }; class Native_functions_hash: public HASH { public: Native_functions_hash() { bzero(this, sizeof(*this)); } ~Native_functions_hash() { /* No automatic free because objects of this type are expected to be declared statically. The code in cleanup() calls my_hash_free() which may not work correctly at the very end of mariadbd shutdown. The the upper level code should call cleanup() explicitly. Unfortunatelly, it's not possible to use DBUG_ASSERT(!records) here, because the server terminates using exit() in some cases, e.g. in the test main.named_pipe with the "Create named pipe failed" error. */ } bool init(size_t count); bool append(const Native_func_registry array[], size_t count); bool remove(const Native_func_registry array[], size_t count); bool replace(const Native_func_registry array[], size_t count) { DBUG_ENTER("Native_functions_hash::replace"); remove(array, count); DBUG_RETURN(append(array, count)); } void cleanup(); /** Find the native function builder associated with a given function name. @param thd The current thread @param name The native function name @return The native function builder associated with the name, or NULL */ Create_func *find(THD *thd, const LEX_CSTRING &name) const; }; extern MYSQL_PLUGIN_IMPORT Native_functions_hash native_functions_hash; extern MYSQL_PLUGIN_IMPORT Native_functions_hash native_functions_hash_oracle; extern const Native_func_registry func_array[]; extern const size_t func_array_length; int item_create_init(); void item_create_cleanup(); Item *create_func_dyncol_create(THD *thd, List<DYNCALL_CREATE_DEF> &list); Item *create_func_dyncol_add(THD *thd, Item *str, List<DYNCALL_CREATE_DEF> &list); Item *create_func_dyncol_delete(THD *thd, Item *str, List<Item> &nums); Item *create_func_dyncol_get(THD *thd, Item *num, Item *str, const Type_handler *handler, const char *c_len, const char *c_dec, CHARSET_INFO *cs); Item *create_func_dyncol_json(THD *thd, Item *str); class Native_func_registry_array { const Native_func_registry *m_elements; size_t m_count; public: Native_func_registry_array() :m_elements(NULL), m_count(0) { } Native_func_registry_array(const Native_func_registry *elements, size_t count) :m_elements(elements), m_count(count) { } const Native_func_registry& element(size_t i) const { DBUG_ASSERT(i < m_count); return m_elements[i]; } const Native_func_registry *elements() const { return m_elements; } size_t count() const { return m_count; } }; #endif
Close