mariadb/mysql-test/suite
Rex 942e4e0506 MDEV-30073 Wrong result on 2nd execution of PS for query with NOT EXISTS
This bug is consequence of a serious architectural flaw of the query
processing at the prepare stage. Context analysis of processed queries has
to be done at this stage. The important part of this analysis is resolution
of column references also known as name resolution. The items for column
references used in a query are created by the parser. They are allocated
in the statement memory because their life span is the same as the life
span of the executed query. During name resolution some of the items are
wrapped into objects belonging to classes derived from the Item_ref class.
In many cases we can't do without such wrappers. For example, the parser
does not differentiate between references to columns of base tables and
references to columns of views. However for a reference to a view column
we need a pointer to the translation item for this column. This pointer
is stored in a Item_direct_view_ref object that wraps the item for the
column reference. Before this patch the wrappers were allocated in
execution memory good only for one execution. That wasn't a problem when
the query was executed only once. Yet for the queries executed as prepared
statements or within a stored procedure it could lead to crashes or wrong
result sets at the second execution of the query. It could happen when
the wrapped item was substituted for something else by permanent
transformations during the optimization phase.

This patch allocates all the wrappers around items created for column
references in the statement memory at the first execution of PS or at the
first call of SP/SF.
2025-03-25 12:52:05 +12:00
..
archive Merge branch '10.5' into 10.6 2024-12-17 11:06:09 +11:00
atomic atomic.alter_table test is too slow for MSAN 2024-04-30 21:59:38 +02:00
binlog Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
binlog_encryption Merge 10.6 into 10.11 2025-02-25 10:23:24 +02:00
client
compat Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
csv Backporting bugs fixes fixed by MDEV-31340 from 11.5 2024-05-21 14:58:01 +04:00
encryption MDEV-30000: Force an InnoDB checkpoint in mariadb-backup 2025-03-10 08:48:43 +02:00
engines MDEV-29344: engines/iuds.insert_time cannot run with PS protocol (syntax error) 2025-03-17 18:11:51 +07:00
federated MDEV-30073 Wrong result on 2nd execution of PS for query with NOT EXISTS 2025-03-25 12:52:05 +12:00
funcs_1 MDEV-35810 fix test results 2025-01-14 14:01:28 +01:00
funcs_2
galera Merge 10.6 into 10.11 2025-02-25 10:23:24 +02:00
galera_3nodes Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
galera_3nodes_sr Merge branch '10.6' into 10.11 2024-07-22 15:14:50 +02:00
galera_sr Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
gcol MDEV-35000: dict_table_close() breaks STATS_AUTO_RECALC 2025-02-28 09:00:16 +02:00
handler Merge branch '10.5' into 10.6 2024-12-17 11:06:09 +11:00
heap Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
innodb MDEV-36227 Race condition between ALTER TABLE…EXCHANGE PARTITION and SELECT 2025-03-07 10:52:59 +02:00
innodb_fts Merge 10.6 into 10.11 2025-02-25 10:23:24 +02:00
innodb_gis Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
innodb_i_s
innodb_zip Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
jp
json Merge branch '10.6' into 10.11 2024-10-29 15:24:38 +01:00
large_tests fix failing large_tests.maria_recover_encrypted 2024-04-22 18:38:39 +02:00
maria Merge 10.6 into 10.11 2025-01-08 12:51:26 +02:00
mariabackup MDEV-30000: Force an InnoDB checkpoint in mariadb-backup 2025-03-10 08:48:43 +02:00
mtr/t Remove dates from all rdiff files 2025-01-05 16:40:11 +02:00
mtr2
multi_source MDEV-36238 Functional Tests for --master-info-file and --show-slave-auth-info 2025-03-18 18:17:02 -06:00
optimizer_unfixed_bugs
parts Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
perfschema Merge 10.6 into 10.11 2025-02-10 14:45:18 +02:00
perfschema_stress
period Merge 10.6 into 10.11 2025-01-08 12:51:26 +02:00
plugins Merge 10.6 into 10.11 2024-12-19 15:38:53 +02:00
roles Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
rpl Merge 10.6 into 10.11 2025-02-25 10:23:24 +02:00
s3 Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
sql_sequence Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
storage_engine
stress MDEV-34453 Trying to read 16384 bytes at 70368744161280 outside the bounds of the file: ./ibdata1 2024-09-20 20:26:43 +05:30
sys_vars MDEV-36149 UBSAN in X is outside the range of representable values of type 'unsigned long' | page_cleaner_flush_pages_recommendation 2025-03-17 11:44:09 +05:30
sysschema Merge 10.6 into 10.11 2024-03-28 09:16:57 +02:00
unit
vcol Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
versioning MDEV-34775 Wrong reopen of already open routine due to auto-create in SP 2025-03-24 09:01:07 +03:00
wsrep Merge branch '10.6' into '10.11' 2025-02-02 23:17:20 +01:00