mariadb/storage
Monty 8de9caed1b Ensure that build_table_name() works correctly with tmp tables
build_table_name()'s flag argument should tell if the table
is a temporary table. This was not always correctly set.
To fix this build_table_name() calls check_if_frm_exists()
for tables whose name starts with '#sql' to verify if the
argument is an existing table.

This patch fixes this by setting the flag argument correctly
for temporary tables.

I added a DBUG_ASSERT() to ensure that build_table_name()
has set the flag argument correctly.  The old code is still
in place for release builds to ensure that
'DROP TABLE #sql-...' still can be used to drop temporary
tables that was for some reason not cleaned up properly.

Other things:
- Added flag argument to alloc_table_share() for marking
  temporary tables.
2025-04-09 12:39:42 +03:00
..
archive Fix typos in C comments inside storage/ 2025-03-26 16:56:50 +04:00
blackhole Merge 11.4 into 11.7 2024-12-02 17:51:17 +02:00
columnstore ColumnStore 23.10.3-1 2025-01-29 23:57:22 +01:00
connect Ensure that build_table_name() works correctly with tmp tables 2025-04-09 12:39:42 +03:00
csv Fix typos in C comments inside storage/ 2025-03-26 16:56:50 +04:00
example Tag push_warning_printf with ATTRIBUTE_FORMAT 2025-02-12 10:17:44 +01:00
federated Fix typos in C comments inside storage/ 2025-03-26 16:56:50 +04:00
federatedx Merge 11.4 into 11.8 2025-03-05 20:39:47 +02:00
heap Fix typos in C comments inside storage/ 2025-03-26 16:56:50 +04:00
innobase MDEV-25292 Atomic CREATE OR REPLACE TABLE 2025-04-09 12:39:42 +03:00
maria MDEV-25292 Atomic CREATE OR REPLACE TABLE 2025-04-09 12:39:42 +03:00
mroonga Ensure that build_table_name() works correctly with tmp tables 2025-04-09 12:39:42 +03:00
myisam Fixed that HA_EXTRA_FLUSH in Aria and MyISAM flushes all data to disk 2025-04-09 12:39:42 +03:00
myisammrg Fix typos in C comments inside storage/ 2025-03-26 16:56:50 +04:00
oqgraph Fix typos in C comments inside storage/ 2025-03-26 16:56:50 +04:00
perfschema Fix typos in C comments inside storage/ 2025-03-26 16:56:50 +04:00
rocksdb Fix typos in C comments inside storage/ 2025-03-26 16:56:50 +04:00
sequence cleanup: extract transaction-related part of handlerton 2024-11-05 14:00:50 -08:00
sphinx Merge 11.4 into 11.7 2024-12-02 17:51:17 +02:00
spider Fix typos in C comments inside storage/ 2025-03-26 16:56:50 +04:00
test_sql_discovery MDEV-19123 Change default charset from latin1 to utf8mb4 2024-07-11 10:21:07 +04:00