OXIESEC PANEL
- Current Dir:
/
/
usr
/
include
/
mysql
/
server
/
private
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
07/04/2024 10:47:16 PM
rwxr-xr-x
📄
aligned.h
1.11 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
aria_backup.h
1.51 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
assume_aligned.h
2.29 KB
06/05/2024 05:31:10 PM
rw-r--r--
📁
atomic
-
07/04/2024 10:47:16 PM
rwxr-xr-x
📄
authors.h
9.9 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
backup.h
1.66 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
bounded_queue.h
6.67 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
client_settings.h
1.89 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
compat56.h
2.23 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
config.h
14.2 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
contributors.h
2.92 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
create_options.h
3.94 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
create_tmp_table.h
2.74 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
custom_conf.h
1.06 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
datadict.h
1.66 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
ddl_log.h
12.51 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
debug.h
1.21 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
debug_sync.h
2 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
derived_handler.h
2.32 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
derror.h
980 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
des_key_file.h
1.21 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
discover.h
1.53 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
dur_prop.h
1.06 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
embedded_priv.h
1.69 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
event_data_objects.h
4.06 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
event_db_repository.h
3.56 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
event_parse_data.h
2.83 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
event_queue.h
3.36 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
event_scheduler.h
3.21 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
events.h
4.59 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
field.h
216.23 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
field_comp.h
1.15 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
filesort.h
7.11 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
filesort_utils.h
8 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
ft_global.h
3.04 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
gcalc_slicescan.h
16.87 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
gcalc_tools.h
11.53 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
grant.h
2.69 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
group_by_handler.h
3.25 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
gstream.h
2.38 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
ha_handler_stats.h
1.85 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
ha_partition.h
62.8 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
ha_sequence.h
5.53 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
handle_connections_win.h
884 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
handler.h
194.12 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
hash.h
4.34 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
hash_filo.h
5.55 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
heap.h
9.2 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
hostname.h
5.29 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
ilist.h
6.98 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
init.h
852 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
innodb_priv.h
1.29 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
item.h
262.38 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
item_cmpfunc.h
129.83 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
item_create.h
11.23 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
item_func.h
132.08 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
item_geofunc.h
37.63 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
item_jsonfunc.h
24.11 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
item_row.h
5.08 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
item_strfunc.h
69.86 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
item_subselect.h
53.22 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
item_sum.h
70.15 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
item_timefunc.h
62.58 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
item_vers.h
4.28 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
item_windowfunc.h
33.43 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
item_xmlfunc.h
4.49 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
json_table.h
9.53 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
key.h
2 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
keycaches.h
1.95 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
lex.h
29.39 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
lex_charset.h
23.6 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
lex_string.h
3.97 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
lex_symbol.h
1.29 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
lf.h
6.31 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
lock.h
2.17 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
log.h
44.93 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
log_event.h
182.28 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
log_event_old.h
19.24 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
log_slow.h
2.38 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
maria.h
5.73 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
mariadb.h
1.25 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
mdl.h
37.56 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
mem_root_array.h
6.94 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
message.h
1.17 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
multi_range_read.h
22.45 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_alarm.h
2.37 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_apc.h
4.64 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_atomic.h
7.11 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_atomic_wrapper.h
2.98 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_base.h
26.53 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_bit.h
5.98 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_bitmap.h
5.37 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_check_opt.h
2.56 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_compare.h
10.93 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_counter.h
1.68 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_cpu.h
4.04 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_crypt.h
904 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_decimal.h
14.15 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_default.h
1.84 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_handler_errors.h
4.74 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_json_writer.h
18.14 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_libwrap.h
1.16 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_md5.h
1.45 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_minidump.h
848 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_nosys.h
1.4 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_rdtsc.h
9.47 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_rnd.h
1014 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_service_manager.h
2 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_stack_alloc.h
3.76 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_stacktrace.h
3.14 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_time.h
10.22 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_tree.h
3.9 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_uctype.h
67.9 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
my_user.h
1.1 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
myisam.h
17.11 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
myisamchk.h
4.61 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
myisammrg.h
4.78 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
myisampack.h
14.58 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
mysqld.h
40.28 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
mysqld_default_groups.h
204 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
mysqld_suffix.h
1.17 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
mysys_err.h
2.95 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
opt_histogram_json.h
4.53 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
opt_range.h
62.54 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
opt_subselect.h
14.21 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
opt_trace.h
8.29 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
opt_trace_context.h
3.21 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
parse_file.h
4.29 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
partition_element.h
5.3 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
partition_info.h
19.4 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
password.h
1.14 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
pfs_file_provider.h
3.08 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
pfs_idle_provider.h
1.35 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
pfs_memory_provider.h
1.59 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
pfs_metadata_provider.h
1.85 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
pfs_socket_provider.h
2.21 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
pfs_stage_provider.h
1.52 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
pfs_statement_provider.h
4.25 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
pfs_table_provider.h
2.56 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
pfs_thread_provider.h
5.43 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
pfs_transaction_provider.h
2.78 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
privilege.h
28.21 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
probes_mysql.h
973 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
probes_mysql_dtrace.h
32.23 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
probes_mysql_nodtrace.h
4.89 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
procedure.h
6.36 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
protocol.h
12.24 KB
06/05/2024 05:31:10 PM
rw-r--r--
📁
providers
-
07/04/2024 10:47:16 PM
rwxr-xr-x
📄
proxy_protocol.h
548 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
queues.h
3.46 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
records.h
3.07 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
repl_failsafe.h
1.55 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
replication.h
15.75 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
rijndael.h
1.67 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
rowid_filter.h
15.13 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
rpl_constants.h
3.28 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
rpl_filter.h
4.64 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
rpl_gtid.h
28.48 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
rpl_injector.h
9.43 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
rpl_mi.h
15.79 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
rpl_parallel.h
17.85 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
rpl_record.h
1.55 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
rpl_record_old.h
1.37 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
rpl_reporting.h
3.63 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
rpl_rli.h
33.41 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
rpl_tblmap.h
3.1 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
rpl_utility.h
9.4 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
scheduler.h
3.12 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
scope.h
1.76 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
select_handler.h
2.18 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
semisync.h
2.23 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
semisync_master.h
25 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
semisync_master_ack_receiver.h
8.5 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
semisync_slave.h
3.65 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
service_versions.h
2.23 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
session_tracker.h
13.87 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
set_var.h
15.97 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
slave.h
11.99 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
source_revision.h
67 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
sp.h
21.63 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sp_cache.h
2 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sp_head.h
63.44 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sp_pcontext.h
24.31 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sp_rcontext.h
14.1 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
span.h
3.84 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
spatial.h
20.86 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_acl.h
13.8 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_admin.h
2.81 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_alloc.h
1.69 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_alter.h
14.95 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_analyse.h
10.92 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_analyze_stmt.h
12.39 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_array.h
6.66 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_audit.h
13.62 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_base.h
25.27 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_basic_types.h
9.3 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_binlog.h
895 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_bitmap.h
7.66 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_bootstrap.h
1.77 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_cache.h
21.15 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_callback.h
1.51 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_class.h
259.69 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_cmd.h
9.07 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_connect.h
3.98 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_const.h
10.72 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_crypt.h
1.4 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_cte.h
16.15 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_cursor.h
2.26 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_db.h
2.38 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_debug.h
5.51 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_delete.h
1.31 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_derived.h
1.26 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_digest.h
3.73 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_digest_stream.h
1.53 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_do.h
954 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_error.h
38.83 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_explain.h
28.64 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_expression_cache.h
4.23 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_get_diagnostics.h
7.68 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_handler.h
2.84 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_help.h
995 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_hset.h
3.33 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_i_s.h
8.29 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_insert.h
2.43 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_join_cache.h
47.12 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_lex.h
168.04 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_lifo_buffer.h
9.26 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_limit.h
3.11 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_list.h
21.91 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_load.h
1.25 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_locale.h
2.64 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_manager.h
960 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_mode.h
6.58 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_parse.h
8.27 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_partition.h
12.38 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_partition_admin.h
5.73 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_plist.h
7.55 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_plugin.h
7.39 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_plugin_compat.h
2.18 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_prepare.h
11.14 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_priv.h
17.66 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_profile.h
7.63 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_reload.h
1.01 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_rename.h
982 bytes
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_repl.h
2.97 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_schema.h
3.23 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_select.h
86.96 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_sequence.h
5.06 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_servers.h
1.74 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_show.h
9.6 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_signal.h
3.28 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_sort.h
21.5 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_statistics.h
16.11 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_string.h
38.74 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_table.h
9.42 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_test.h
1.55 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_time.h
8.18 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_trigger.h
11.85 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_truncate.h
2.02 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_tvc.h
2.36 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_type.h
287.72 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_type_fixedbin.h
62.76 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_type_fixedbin_storage.h
5.34 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_type_geom.h
18.59 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_type_int.h
9.77 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_type_json.h
6.01 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_type_real.h
1.23 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_type_string.h
1.59 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_udf.h
4.74 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_union.h
1.04 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_update.h
1.88 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_view.h
2.41 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sql_window.h
6.65 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
ssl_compat.h
3.07 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
strfunc.h
2.22 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
structs.h
28.82 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
sys_vars_shared.h
2.61 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
t_ctype.h
5.51 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
table.h
112.59 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
table_cache.h
4.13 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
thr_alarm.h
2.86 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
thr_lock.h
7.18 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
thr_malloc.h
1.17 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
thr_timer.h
1.53 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
thread_cache.h
5.77 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
threadpool.h
4.67 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
threadpool_generic.h
3.88 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
threadpool_winsockets.h
2.24 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
transaction.h
1.43 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
tzfile.h
4.9 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
tztime.h
3.32 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
uniques.h
4.1 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
unireg.h
7.54 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
vers_string.h
2.47 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
violite.h
9.85 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
waiting_threads.h
4.43 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
welcome_copyright_notice.h
1.19 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
win_tzname_data.h
6.35 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
winservice.h
5.88 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wqueue.h
1.53 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep.h
3.23 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_allowlist_service.h
1.01 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_applier.h
1.89 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_binlog.h
3.36 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_client_service.h
2.31 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_client_state.h
1.53 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_condition_variable.h
1.42 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_high_priority_service.h
4.57 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_mutex.h
1.18 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_mysqld.h
20.62 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_mysqld_c.h
1.2 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_on.h
1.68 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_priv.h
1.6 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_schema.h
5.23 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_server_service.h
3.25 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_server_state.h
2.43 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_sst.h
3.86 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_status.h
1.77 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_storage_service.h
1.69 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_thd.h
10.38 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_trans_observer.h
17.87 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_types.h
1.08 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_utils.h
9.58 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_var.h
4.27 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
wsrep_xid.h
1.42 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
xa.h
1.77 KB
06/05/2024 05:31:10 PM
rw-r--r--
Editing: item_jsonfunc.h
Close
#ifndef ITEM_JSONFUNC_INCLUDED #define ITEM_JSONFUNC_INCLUDED /* Copyright (c) 2016, 2021, 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-1301 USA */ /* This file defines all JSON functions */ #include <json_lib.h> #include "item_cmpfunc.h" // Item_bool_func #include "item_strfunc.h" // Item_str_func #include "item_sum.h" #include "sql_type_json.h" class json_path_with_flags { public: json_path_t p; bool constant; bool parsed; json_path_step_t *cur_step; void set_constant_flag(bool s_constant) { constant= s_constant; parsed= FALSE; } }; void report_path_error_ex(const char *ps, json_path_t *p, const char *fname, int n_param, Sql_condition::enum_warning_level lv); void report_json_error_ex(const char *js, json_engine_t *je, const char *fname, int n_param, Sql_condition::enum_warning_level lv); int check_overlaps(json_engine_t *js, json_engine_t *value, bool compare_whole); int json_find_overlap_with_object(json_engine_t *js, json_engine_t *value, bool compare_whole); void json_skip_current_level(json_engine_t *js, json_engine_t *value); bool json_find_overlap_with_scalar(json_engine_t *js, json_engine_t *value); bool json_compare_arrays_in_order_in_order(json_engine_t *js, json_engine_t *value); bool json_compare_arr_and_obj(json_engine_t *js, json_engine_t* value); int json_find_overlap_with_array(json_engine_t *js, json_engine_t *value, bool compare_whole); class Json_engine_scan: public json_engine_t { public: Json_engine_scan(CHARSET_INFO *i_cs, const uchar *str, const uchar *end) { json_scan_start(this, i_cs, str, end); } Json_engine_scan(const String &str) :Json_engine_scan(str.charset(), (const uchar *) str.ptr(), (const uchar *) str.end()) { } bool check_and_get_value_scalar(String *res, int *error); bool check_and_get_value_complex(String *res, int *error); }; class Json_path_extractor: public json_path_with_flags { protected: String tmp_js, tmp_path; virtual ~Json_path_extractor() { } virtual bool check_and_get_value(Json_engine_scan *je, String *to, int *error)=0; bool extract(String *to, Item *js, Item *jp, CHARSET_INFO *cs); }; class Item_func_json_valid: public Item_bool_func { protected: String tmp_value; public: Item_func_json_valid(THD *thd, Item *json) : Item_bool_func(thd, json) {} longlong val_int() override; LEX_CSTRING func_name_cstring() const override { static LEX_CSTRING name= {STRING_WITH_LEN("json_valid") }; return name; } bool fix_length_and_dec(THD *thd) override { if (Item_bool_func::fix_length_and_dec(thd)) return TRUE; set_maybe_null(); return FALSE; } bool set_format_by_check_constraint(Send_field_extended_metadata *to) const override { static const Lex_cstring fmt(STRING_WITH_LEN("json")); return to->set_format_name(fmt); } Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_valid>(thd, this); } enum Functype functype() const override { return JSON_VALID_FUNC; } }; class Item_func_json_equals: public Item_bool_func { public: Item_func_json_equals(THD *thd, Item *a, Item *b): Item_bool_func(thd, a, b) {} LEX_CSTRING func_name_cstring() const override { static LEX_CSTRING name= {STRING_WITH_LEN("json_equals") }; return name; } bool fix_length_and_dec(THD *thd) override; Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_equals>(thd, this); } longlong val_int() override; }; class Item_func_json_exists: public Item_bool_func { protected: json_path_with_flags path; String tmp_js, tmp_path; public: Item_func_json_exists(THD *thd, Item *js, Item *i_path): Item_bool_func(thd, js, i_path) {} LEX_CSTRING func_name_cstring() const override { static LEX_CSTRING name= {STRING_WITH_LEN("json_exists") }; return name; } bool fix_length_and_dec(THD *thd) override; Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_exists>(thd, this); } longlong val_int() override; }; class Item_json_func: public Item_str_func { public: Item_json_func(THD *thd) :Item_str_func(thd) { } Item_json_func(THD *thd, Item *a) :Item_str_func(thd, a) { } Item_json_func(THD *thd, Item *a, Item *b) :Item_str_func(thd, a, b) { } Item_json_func(THD *thd, List<Item> &list) :Item_str_func(thd, list) { } const Type_handler *type_handler() const override { return Type_handler_json_common::json_type_handler(max_length); } }; class Item_func_json_value: public Item_str_func, public Json_path_extractor { public: Item_func_json_value(THD *thd, Item *js, Item *i_path): Item_str_func(thd, js, i_path) {} LEX_CSTRING func_name_cstring() const override { static LEX_CSTRING name= {STRING_WITH_LEN("json_value") }; return name; } bool fix_length_and_dec(THD *thd) override ; String *val_str(String *to) override { null_value= Json_path_extractor::extract(to, args[0], args[1], collation.collation); return null_value ? NULL : to; } bool check_and_get_value(Json_engine_scan *je, String *res, int *error) override { return je->check_and_get_value_scalar(res, error); } Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_value>(thd, this); } }; class Item_func_json_query: public Item_json_func, public Json_path_extractor { public: Item_func_json_query(THD *thd, Item *js, Item *i_path): Item_json_func(thd, js, i_path) {} LEX_CSTRING func_name_cstring() const override { static LEX_CSTRING name= {STRING_WITH_LEN("json_query") }; return name; } bool fix_length_and_dec(THD *thd) override; String *val_str(String *to) override { null_value= Json_path_extractor::extract(to, args[0], args[1], collation.collation); return null_value ? NULL : to; } bool check_and_get_value(Json_engine_scan *je, String *res, int *error) override { return je->check_and_get_value_complex(res, error); } Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_query>(thd, this); } }; class Item_func_json_quote: public Item_str_func { protected: String tmp_s; public: Item_func_json_quote(THD *thd, Item *s): Item_str_func(thd, s) {} LEX_CSTRING func_name_cstring() const override { static LEX_CSTRING name= {STRING_WITH_LEN("json_quote") }; return name; } bool fix_length_and_dec(THD *thd) override; String *val_str(String *) override; Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_quote>(thd, this); } }; class Item_func_json_unquote: public Item_str_func { protected: String tmp_s; String *read_json(json_engine_t *je); public: Item_func_json_unquote(THD *thd, Item *s): Item_str_func(thd, s) {} LEX_CSTRING func_name_cstring() const override { static LEX_CSTRING name= {STRING_WITH_LEN("json_unquote") }; return name; } bool fix_length_and_dec(THD *thd) override; String *val_str(String *) override; Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_unquote>(thd, this); } }; class Item_json_str_multipath: public Item_json_func { protected: json_path_with_flags *paths; String *tmp_paths; private: /** Number of paths returned by calling virtual method get_n_paths() and remembered inside fix_fields(). It is used by the virtual destructor ~Item_json_str_multipath() to iterate along allocated memory chunks stored in the array tmp_paths and free every of them. The virtual method get_n_paths() can't be used for this goal from within virtual destructor. We could get rid of the virtual method get_n_paths() and store the number of paths directly in the constructor of classes derived from the class Item_json_str_multipath but presence of the method get_n_paths() allows to check invariant that the number of arguments not changed between sequential runs of the same prepared statement that seems to be useful. */ uint n_paths; public: Item_json_str_multipath(THD *thd, List<Item> &list): Item_json_func(thd, list), paths(NULL), tmp_paths(0), n_paths(0) {} virtual ~Item_json_str_multipath(); bool fix_fields(THD *thd, Item **ref); virtual uint get_n_paths() const = 0; }; class Item_func_json_extract: public Item_json_str_multipath { protected: String tmp_js; public: String *read_json(String *str, json_value_types *type, char **out_val, int *value_len); Item_func_json_extract(THD *thd, List<Item> &list): Item_json_str_multipath(thd, list) {} LEX_CSTRING func_name_cstring() const override { static LEX_CSTRING name= {STRING_WITH_LEN("json_extract") }; return name; } enum Functype functype() const override { return JSON_EXTRACT_FUNC; } bool fix_length_and_dec(THD *thd) override; String *val_str(String *) override; longlong val_int() override; double val_real() override; my_decimal *val_decimal(my_decimal *) override; uint get_n_paths() const override { return arg_count - 1; } Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_extract>(thd, this); } }; class Item_func_json_contains: public Item_bool_func { protected: String tmp_js; json_path_with_flags path; String tmp_path; bool a2_constant, a2_parsed; String tmp_val, *val; public: Item_func_json_contains(THD *thd, List<Item> &list): Item_bool_func(thd, list) {} LEX_CSTRING func_name_cstring() const override { static LEX_CSTRING name= {STRING_WITH_LEN("json_contains") }; return name; } bool fix_length_and_dec(THD *thd) override; longlong val_int() override; Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_contains>(thd, this); } }; class Item_func_json_contains_path: public Item_bool_func { protected: String tmp_js; json_path_with_flags *paths; String *tmp_paths; bool mode_one; bool ooa_constant, ooa_parsed; bool *p_found; public: Item_func_json_contains_path(THD *thd, List<Item> &list): Item_bool_func(thd, list), tmp_paths(0) {} virtual ~Item_func_json_contains_path(); LEX_CSTRING func_name_cstring() const override { static LEX_CSTRING name= {STRING_WITH_LEN("json_contains_path") }; return name; } bool fix_fields(THD *thd, Item **ref) override; bool fix_length_and_dec(THD *thd) override; longlong val_int() override; Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_contains_path>(thd, this); } }; class Item_func_json_array: public Item_json_func { protected: String tmp_val; ulong result_limit; public: Item_func_json_array(THD *thd): Item_json_func(thd) {} Item_func_json_array(THD *thd, List<Item> &list): Item_json_func(thd, list) {} String *val_str(String *) override; bool fix_length_and_dec(THD *thd) override; LEX_CSTRING func_name_cstring() const override { static LEX_CSTRING name= {STRING_WITH_LEN("json_array") }; return name; } Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_array>(thd, this); } }; class Item_func_json_array_append: public Item_json_str_multipath { protected: String tmp_js; String tmp_val; public: Item_func_json_array_append(THD *thd, List<Item> &list): Item_json_str_multipath(thd, list) {} bool fix_length_and_dec(THD *thd) override; String *val_str(String *) override; uint get_n_paths() const override { return arg_count/2; } LEX_CSTRING func_name_cstring() const override { static LEX_CSTRING name= {STRING_WITH_LEN("json_array_append") }; return name; } Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_array_append>(thd, this); } }; class Item_func_json_array_insert: public Item_func_json_array_append { public: Item_func_json_array_insert(THD *thd, List<Item> &list): Item_func_json_array_append(thd, list) {} String *val_str(String *) override; LEX_CSTRING func_name_cstring() const override { static LEX_CSTRING name= {STRING_WITH_LEN("json_array_insert") }; return name; } Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_array_insert>(thd, this); } }; class Item_func_json_object: public Item_func_json_array { public: Item_func_json_object(THD *thd): Item_func_json_array(thd) {} Item_func_json_object(THD *thd, List<Item> &list): Item_func_json_array(thd, list) {} String *val_str(String *) override; LEX_CSTRING func_name_cstring() const override { static LEX_CSTRING name= {STRING_WITH_LEN("json_object") }; return name; } Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_object>(thd, this); } }; class Item_func_json_merge: public Item_func_json_array { protected: String tmp_js1, tmp_js2; public: Item_func_json_merge(THD *thd, List<Item> &list): Item_func_json_array(thd, list) {} String *val_str(String *) override; LEX_CSTRING func_name_cstring() const override { static LEX_CSTRING name= {STRING_WITH_LEN("json_merge_preserve") }; return name; } Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_merge>(thd, this); } }; class Item_func_json_merge_patch: public Item_func_json_merge { public: Item_func_json_merge_patch(THD *thd, List<Item> &list): Item_func_json_merge(thd, list) {} LEX_CSTRING func_name_cstring() const override { static LEX_CSTRING name= {STRING_WITH_LEN("json_merge_patch") }; return name; } String *val_str(String *) override; Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_merge_patch>(thd, this); } }; class Item_func_json_normalize: public Item_json_func { public: Item_func_json_normalize(THD *thd, Item *a): Item_json_func(thd, a) {} String *val_str(String *) override; LEX_CSTRING func_name_cstring() const override { static LEX_CSTRING name= {STRING_WITH_LEN("json_normalize") }; return name; } bool fix_length_and_dec(THD *thd) override; Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_normalize>(thd, this); } }; class Item_func_json_length: public Item_long_func { bool check_arguments() const override { const LEX_CSTRING name= func_name_cstring(); if (arg_count == 0 || arg_count > 2) { my_error(ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT, MYF(0), name.str); return true; } return args[0]->check_type_can_return_text(name) || (arg_count > 1 && args[1]->check_type_general_purpose_string(name)); } protected: json_path_with_flags path; String tmp_js; String tmp_path; public: Item_func_json_length(THD *thd, List<Item> &list): Item_long_func(thd, list) {} LEX_CSTRING func_name_cstring() const override { static LEX_CSTRING name= {STRING_WITH_LEN("json_length") }; return name; } bool fix_length_and_dec(THD *thd) override; longlong val_int() override; Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_length>(thd, this); } }; class Item_func_json_depth: public Item_long_func { bool check_arguments() const override { return args[0]->check_type_can_return_text(func_name_cstring()); } protected: String tmp_js; public: Item_func_json_depth(THD *thd, Item *js): Item_long_func(thd, js) {} LEX_CSTRING func_name_cstring() const override { static LEX_CSTRING name= {STRING_WITH_LEN("json_depth") }; return name; } bool fix_length_and_dec(THD *thd) override { max_length= 10; return FALSE; } longlong val_int() override; Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_depth>(thd, this); } }; class Item_func_json_type: public Item_str_func { protected: String tmp_js; public: Item_func_json_type(THD *thd, Item *js): Item_str_func(thd, js) {} LEX_CSTRING func_name_cstring() const override { static LEX_CSTRING name= {STRING_WITH_LEN("json_type") }; return name; } bool fix_length_and_dec(THD *thd) override; String *val_str(String *) override; Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_type>(thd, this); } }; class Item_func_json_insert: public Item_json_str_multipath { protected: String tmp_js; String tmp_val; bool mode_insert, mode_replace; public: Item_func_json_insert(bool i_mode, bool r_mode, THD *thd, List<Item> &list): Item_json_str_multipath(thd, list), mode_insert(i_mode), mode_replace(r_mode) {} bool fix_length_and_dec(THD *thd) override; String *val_str(String *) override; uint get_n_paths() const override { return arg_count/2; } LEX_CSTRING func_name_cstring() const override { static LEX_CSTRING json_set= {STRING_WITH_LEN("json_set") }; static LEX_CSTRING json_insert= {STRING_WITH_LEN("json_insert") }; static LEX_CSTRING json_replace= {STRING_WITH_LEN("json_replace") }; return (mode_insert ? (mode_replace ? json_set : json_insert) : json_replace); } Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_insert>(thd, this); } }; class Item_func_json_remove: public Item_json_str_multipath { protected: String tmp_js; public: Item_func_json_remove(THD *thd, List<Item> &list): Item_json_str_multipath(thd, list) {} bool fix_length_and_dec(THD *thd) override; String *val_str(String *) override; uint get_n_paths() const override { return arg_count - 1; } LEX_CSTRING func_name_cstring() const override { static LEX_CSTRING name= {STRING_WITH_LEN("json_remove") }; return name; } Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_remove>(thd, this); } }; class Item_func_json_keys: public Item_str_func { protected: json_path_with_flags path; String tmp_js, tmp_path; public: Item_func_json_keys(THD *thd, List<Item> &list): Item_str_func(thd, list) {} LEX_CSTRING func_name_cstring() const override { static LEX_CSTRING name= {STRING_WITH_LEN("json_keys") }; return name; } bool fix_length_and_dec(THD *thd) override; String *val_str(String *) override; Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_keys>(thd, this); } }; class Item_func_json_search: public Item_json_str_multipath { protected: String tmp_js, tmp_path, esc_value; bool mode_one; bool ooa_constant, ooa_parsed; int escape; int n_path_found; json_path_t sav_path; int compare_json_value_wild(json_engine_t *je, const String *cmp_str); public: Item_func_json_search(THD *thd, List<Item> &list): Item_json_str_multipath(thd, list) {} LEX_CSTRING func_name_cstring() const override { static LEX_CSTRING name= {STRING_WITH_LEN("json_search") }; return name; } bool fix_fields(THD *thd, Item **ref) override; bool fix_length_and_dec(THD *thd) override; String *val_str(String *) override; uint get_n_paths() const override { return arg_count > 4 ? arg_count - 4 : 0; } Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_search>(thd, this); } }; class Item_func_json_format: public Item_json_func { public: enum formats { NONE, COMPACT, LOOSE, DETAILED }; protected: formats fmt; String tmp_js; public: Item_func_json_format(THD *thd, Item *js, formats format): Item_json_func(thd, js), fmt(format) {} Item_func_json_format(THD *thd, List<Item> &list): Item_json_func(thd, list), fmt(DETAILED) {} LEX_CSTRING func_name_cstring() const override; bool fix_length_and_dec(THD *thd) override; String *val_str(String *str) override; String *val_json(String *str) override; Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_format>(thd, this); } }; class Item_func_json_arrayagg : public Item_func_group_concat { protected: /* Overrides Item_func_group_concat::skip_nulls() NULL-s should be added to the result as JSON null value. */ bool skip_nulls() const override { return false; } String *get_str_from_item(Item *i, String *tmp) override; String *get_str_from_field(Item *i, Field *f, String *tmp, const uchar *key, size_t offset) override; void cut_max_length(String *result, uint old_length, uint max_length) const override; public: String m_tmp_json; /* Used in get_str_from_*.. */ Item_func_json_arrayagg(THD *thd, Name_resolution_context *context_arg, bool is_distinct, List<Item> *is_select, const SQL_I_List<ORDER> &is_order, String *is_separator, bool limit_clause, Item *row_limit, Item *offset_limit): Item_func_group_concat(thd, context_arg, is_distinct, is_select, is_order, is_separator, limit_clause, row_limit, offset_limit) { } Item_func_json_arrayagg(THD *thd, Item_func_json_arrayagg *item) : Item_func_group_concat(thd, item) {} const Type_handler *type_handler() const override { return Type_handler_json_common::json_type_handler_sum(this); } LEX_CSTRING func_name_cstring() const override { static LEX_CSTRING name= {STRING_WITH_LEN("json_arrayagg(") }; return name; } bool fix_fields(THD *thd, Item **ref) override; enum Sumfunctype sum_func() const override { return JSON_ARRAYAGG_FUNC; } String* val_str(String *str) override; Item *copy_or_same(THD* thd) override; Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_arrayagg>(thd, this); } }; class Item_func_json_objectagg : public Item_sum { String result; public: Item_func_json_objectagg(THD *thd, Item *key, Item *value) : Item_sum(thd, key, value) { quick_group= FALSE; result.append('{'); } Item_func_json_objectagg(THD *thd, Item_func_json_objectagg *item); void cleanup() override; enum Sumfunctype sum_func () const override { return JSON_OBJECTAGG_FUNC;} LEX_CSTRING func_name_cstring() const override { static LEX_CSTRING name= {STRING_WITH_LEN("json_objectagg") }; return name; } const Type_handler *type_handler() const override { return Type_handler_json_common::json_type_handler_sum(this); } void clear() override; bool add() override; void reset_field() override { DBUG_ASSERT(0); } // not used void update_field() override { DBUG_ASSERT(0); } // not used bool fix_fields(THD *,Item **) override; double val_real() override { return 0.0; } longlong val_int() override { return 0; } my_decimal *val_decimal(my_decimal *decimal_value) override { my_decimal_set_zero(decimal_value); return decimal_value; } bool get_date(THD *thd, MYSQL_TIME *ltime, date_mode_t fuzzydate) override { return get_date_from_string(thd, ltime, fuzzydate); } String* val_str(String* str) override; Item *copy_or_same(THD* thd) override; void no_rows_in_result() override {} Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_objectagg>(thd, this); } }; extern bool is_json_type(const Item *item); class Item_func_json_overlaps: public Item_bool_func { String tmp_js; bool a2_constant, a2_parsed; String tmp_val, *val; public: Item_func_json_overlaps(THD *thd, Item *a, Item *b): Item_bool_func(thd, a, b) {} LEX_CSTRING func_name_cstring() const override { static LEX_CSTRING name= {STRING_WITH_LEN("json_overlaps") }; return name; } bool fix_length_and_dec(THD *thd) override; longlong val_int() override; Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_overlaps>(thd, this); } }; #endif /* ITEM_JSONFUNC_INCLUDED */