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 Merge remote-tracking branch 'origin/11.5' into 11.6 2024-07-10 19:18:52 +04:00
comp_sql.c Merge 10.5 into 10.6 2022-07-01 15:24:50 +03:00
convert-debug-for-diff.sh Fixes to make dbug traces from Windows easier to compare with Unix traces 2023-03-02 13:11:54 +02:00
dheadgen.pl BUG#25719975 SHEBANG HARD CODED AS /USR/BIN/PERL IN SCRIPTS, BREAKS ON FREEBSD 2017-03-28 13:22:32 +02:00
fill_help_tables.sql Fixing mariadb-install-db.exe failure on Windows (Illegal mix of collations) 2024-05-25 12:04:37 +04:00
galera_new_cluster.sh MDEV-19210: drop support for instantiated services from galera_new_cluster 2024-05-29 10:01:19 +01:00
galera_recovery.sh Fix recovering state GTID in case log file contains non-text bytes - 2024-09-01 02:52:52 +02:00
maria_add_gis_sp.sql.in MDEV-19650: Privilege bug on MariaDB 10.4 2020-05-07 10:54:56 +02:00
mariadb-service-convert Merge 10.4 into 10.5 2023-01-13 10:18:30 +02:00
mariadb_performance_tables.sql Fixing mariadb-install-db.exe failure on Windows (Illegal mix of collations) 2024-05-25 12:04:37 +04:00
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 Fixing mariadb-install-db.exe failure on Windows (Illegal mix of collations) 2024-05-25 12:04:37 +04:00
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 MDEV-31684 Add timezone information to DATE_FORMAT 2023-10-11 21:49:13 +05:30
mariadb_test_db.sql MDEV-19123 Change default charset from latin1 to utf8mb4 2024-07-11 10:21:07 +04:00
msql2mysql.sh Update FSF Address 2019-05-11 21:29:06 +03:00
mysql_config.pl.in Merge 10.3 into 10.4 2020-10-29 13:38:38 +02:00
mysql_config.sh Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
mysql_convert_table_format.sh MDEV-29582 post-review fixes 2023-02-10 10:45:25 +01:00
mysql_find_rows.sh MDEV-29582 post-review fixes 2023-02-10 10:45:25 +01:00
mysql_fix_extensions.sh MDEV-30448 No deprecation message shown for mysql_fix_extensions 2023-02-07 20:11:37 +11:00
mysql_install_db.sh Merge 10.11 into 11.1 2024-06-17 09:21:50 +03:00
mysql_secure_installation.sh Merge branch '10.11' into 11.1 2024-08-03 09:32:42 +02:00
mysql_setpermission.sh Merge 10.11 into 11.0 2023-11-30 16:20:47 +02:00
mysqlaccess.conf BUG#25719975 SHEBANG HARD CODED AS /USR/BIN/PERL IN SCRIPTS, BREAKS ON FREEBSD 2017-03-28 13:22:32 +02:00
mysqlaccess.sh MDEV-29582 post-review fixes 2023-02-10 10:45:25 +01:00
mysqld_multi.sh MDEV-29582 post-review fixes 2023-02-10 10:45:25 +01:00
mysqld_safe.sh Merge '11.4' into 11.6 2024-10-03 15:59:20 +10:00
mysqldumpslow.sh MDEV-29582 post-review fixes 2023-02-10 10:45:25 +01:00
mysqlhotcopy.sh Merge 10.11 into 11.0 2024-01-19 09:07:48 +02:00
mytop.sh MDEV-34604 mytop - fix specifying filters in .mytop 2024-07-17 14:19:53 +10:00
wsrep_sst_backup.sh galera SST scripts: comments update 2024-09-15 06:08:03 +02:00
wsrep_sst_common.sh Merge '11.4' into 11.6 2024-10-03 15:59:20 +10:00
wsrep_sst_mariabackup.sh MDEV-30822: Adjust wsrep_sst_mariabackup.sh to understand both pre-MDEV-18931 and post-MDEV-18931 file naming 2024-09-19 11:15:38 +02:00
wsrep_sst_mysqldump.sh Merge '11.4' into 11.6 2024-10-03 15:59:20 +10:00
wsrep_sst_rsync.sh Merge branch '10.6' into '10.11' 2024-09-17 06:23:10 +02:00