mariadb/scripts
Yuchen Pei d2eba35653
MDEV-34716 Allow arbitrary options in CREATE SERVER
The existing syntax for CREATE SERVER

CREATE [OR REPLACE] SERVER [IF NOT EXISTS] server_name
    FOREIGN DATA WRAPPER wrapper_name
    OPTIONS (option [, option] ...)

option:
  { HOST character-literal
  | DATABASE character-literal
  | USER character-literal
  | PASSWORD character-literal
  | SOCKET character-literal
  | OWNER character-literal
  | PORT numeric-literal }

With this change we have:

option:
  { HOST character-literal
  | DATABASE character-literal
  | USER character-literal
  | PASSWORD character-literal
  | SOCKET character-literal
  | OWNER character-literal
  | PORT numeric-literal
  | PORT quoted-numerical-literal
  | identifier character-literal}

We store these options as a JSON field in the mysql.servers system
table. We retain the restriction that PORT needs to be a number, but
also allow it to be a quoted number, so that SHOW CREATE SERVER can be
used for dumping. Without an accompanied implementation of SHOW CREATE
SERVER, some mysqldump tests will fail. Therefore this commit should
be immediately followed by the one implementating SHOW CREATE SERVER,
with testing covering both.
2024-10-15 10:50:22 +11:00
..
sys_schema Merge '11.4' into 11.6 2024-10-03 15:59:20 +10:00
CMakeLists.txt
comp_sql.c
convert-debug-for-diff.sh
dheadgen.pl
fill_help_tables.sql
galera_new_cluster.sh
galera_recovery.sh
maria_add_gis_sp.sql.in
mariadb-service-convert
mariadb_performance_tables.sql
mariadb_system_tables.sql MDEV-34716 Allow arbitrary options in CREATE SERVER 2024-10-15 10:50:22 +11:00
mariadb_system_tables_data.sql
mariadb_system_tables_fix.sql MDEV-34716 Allow arbitrary options in CREATE SERVER 2024-10-15 10:50:22 +11:00
mariadb_test_data_timezone.sql
mariadb_test_db.sql
msql2mysql.sh
mysql_config.pl.in
mysql_config.sh
mysql_convert_table_format.sh
mysql_find_rows.sh
mysql_fix_extensions.sh
mysql_install_db.sh
mysql_secure_installation.sh
mysql_setpermission.sh
mysqlaccess.conf
mysqlaccess.sh
mysqld_multi.sh
mysqld_safe.sh Merge '11.4' into 11.6 2024-10-03 15:59:20 +10:00
mysqldumpslow.sh
mysqlhotcopy.sh
mytop.sh
wsrep_sst_backup.sh
wsrep_sst_common.sh Merge '11.4' into 11.6 2024-10-03 15:59:20 +10:00
wsrep_sst_mariabackup.sh
wsrep_sst_mysqldump.sh Merge '11.4' into 11.6 2024-10-03 15:59:20 +10:00
wsrep_sst_rsync.sh