mariadb/mysql-test/suite
Alexander Barkov 350cc77fee MDEV-29968 Functions in default values in tables with some character sets break SHOW CREATE (and mysqldump)
Item:print_for_table_def() uses QT_TO_SYSTEM_CHARSET to print
the DEFAULT expression into FRM file during CREATE TABLE.
Therefore, the expression is encoded in utf8 in FRM.

get_field_default_value() erroneously used field->charset() to
print the DEFAULT expression at SHOW CREATE TABLE time.

Fixing get_field_default_value() to use &my_charset_utf8mb4_general_ci instead.
This makes DEFAULT work in the way way with:

- virtual column expressions:

    if (field->vcol_info)
    {
      StringBuffer<MAX_FIELD_WIDTH> str(&my_charset_utf8mb4_general_ci);
      field->vcol_info->print(&str);

- check constraint expressions:

    if (field->check_constraint)
    {
      StringBuffer<MAX_FIELD_WIDTH> str(&my_charset_utf8mb4_general_ci);
      field->check_constraint->print(&str);

Additional cleanup:
Fixing system_charset_info to &my_charset_utf8mb4_general_ci in a few
places to make non-BMP characters work in DEFAULT, virtual column,
check constraint expressions.
2025-01-17 15:39:55 +04:00
..
archive MDEV-22964: archive.archive and main.mysqlbinlog_{row,stmt}_compressed) 2024-12-16 10:04:07 +11:00
binlog MDEV-35528: mariadb-binlog cannot process more than 1 logfiles when --stop-datetime is specified 2025-01-12 11:03:10 -07:00
binlog_encryption enforce no trailing \n in Diagnostic_area messages 2025-01-07 16:31:39 +01:00
client
compat MDEV-29968 Functions in default values in tables with some character sets break SHOW CREATE (and mysqldump) 2025-01-17 15:39:55 +04:00
csv Backporting bugs fixes fixed by MDEV-31340 from 11.5 2024-05-21 14:58:01 +04:00
encryption MDEV-31005: Make working cursor-protocol 2024-09-18 18:39:26 +07:00
engines MDEV-31005: Make working cursor-protocol 2024-09-18 18:39:26 +07:00
federated MDEV-29968 Functions in default values in tables with some character sets break SHOW CREATE (and mysqldump) 2025-01-17 15:39:55 +04:00
funcs_1 MDEV-34716 Fix mysql.servers socket max length too short 2024-12-17 10:40:57 +11:00
funcs_2
galera MDEV-33064: Sync trx->wsrep state from THD on trx start 2025-01-14 02:17:22 +01:00
galera_3nodes MDEV-35473 : Sporadic failures in the galera_3nodes.galera_evs_suspect_timeout mtr test 2024-11-28 01:02:35 +01:00
galera_3nodes_sr galera mtr tests: correction of inaccuracies in warnings suppressions 2024-07-08 23:36:21 +02:00
galera_sr MDEV-35344: post-fix correction for other galera tests 2024-11-06 04:59:10 +01:00
gcol MDEV-31005: Make working cursor-protocol 2024-09-18 18:39:26 +07:00
handler MDEV-30263 Assertion failure in Protocol::end_statement upon HANDLER READ with invalid timestamp 2024-12-13 16:27:14 +01:00
heap MDEV-28130 MariaDB SEGV issue at tree_search_next 2025-01-14 18:56:14 +03:00
innodb MDEV-35723: applying non-zero offset to null pointer in INSERT 2025-01-17 12:34:03 +02:00
innodb_fts Correct cursor protocol tests main.{loaddata,grant_plugin} & innodb_fts.fulltext 2024-11-21 21:43:44 +11:00
innodb_gis MDEV-35116 InnoDB fails to set error index for HA_ERR_NULL_IN_SPATIAL 2024-10-14 14:28:24 +05:30
innodb_i_s
innodb_zip MDEV-16944 Fix file sharing issues on Windows in mysqltest 2024-04-17 16:52:37 +02:00
jp
json MDEV-31005: Make working cursor-protocol 2024-09-18 18:39:26 +07:00
large_tests MDEV-16944 Fix file sharing issues on Windows in mysqltest 2024-04-17 16:52:37 +02:00
maria MDEV-22935 Erroneous Aria Index / Optimizer behaviour 2024-06-05 10:29:49 +03:00
mariabackup MDEV-35808 Test case to handle undo tablespace truncation in Mariabackup 2025-01-13 17:43:58 +02:00
mtr/t
mtr2
multi_source Merge from 10.4 to 10.5 2024-04-15 17:46:49 +02:00
optimizer_unfixed_bugs
parts MDEV-35648 Update partition lc2 tests for mac 2024-12-17 15:28:33 +11:00
perfschema MDEV-31005: Make working cursor-protocol 2024-09-18 18:39:26 +07:00
perfschema_stress
period MDEV-31005: Make working cursor-protocol 2024-09-18 18:39:26 +07:00
plugins MDEV-35604: SIGSEGV in filter_query_type | log_statement_ex / auditing 2024-12-09 09:42:26 +01:00
roles MDEV-29968 Functions in default values in tables with some character sets break SHOW CREATE (and mysqldump) 2025-01-17 15:39:55 +04:00
rpl MDEV-35096: History is stored in different partitions on different nodes when using SYSTEM VERSION 2025-01-13 15:59:07 -07:00
s3 also protect the /*!999999 sandbox comment 2024-07-17 21:25:40 +02:00
sql_sequence MDEV-29968 Functions in default values in tables with some character sets break SHOW CREATE (and mysqldump) 2025-01-17 15:39:55 +04:00
storage_engine
stress
sys_vars Revert "MDEV-35019 Provide a way to enable "rollback XA on disconnect" behavior we had before 10.5.2" 2024-10-16 13:23:47 +02:00
unit
vcol MDEV-26891 Segfault in Field::register_field_in_read_map upon INSERT 2025-01-14 18:56:13 +03:00
versioning MDEV-35343 unexpected replace behaviour when long unique index on 2025-01-14 18:56:13 +03:00
wsrep wsrep mtr suite: update for galera library 26.4.21 2024-12-17 09:57:29 +01:00