1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-05 01:43:31 +03:00
Files
mariadb/sql
Georgi Kodinov 9ba74e5d21 Bug #46175: NULL read_view and consistent read assertion
The SE API requires mysql to notify the storage engine that
it's going to read certain tables at the beginning of the 
statement (by calling start_stmt(), store_lock() or
external_lock()).
These are typically called by the lock_tables(). 
However SHOW CREATE TABLE is not pre-locking the tables
because it's not expected to access the data at all.
But for some view definitions (that include comparing a
date/datetime/timestamp column to a string returning
scalar subquery) the JOIN::prepare may still access data
when materializing the scalar non-correlated subquery
in Arg_comparator::can_compare_as_dates().
Fixed by not materializing the subquery when the function
is called in a SHOW/EXPLAIN/CREATE VIEW
2009-11-04 13:54:28 +02:00
..
2009-09-29 17:38:40 +02:00
2009-09-29 17:38:40 +02:00
2009-09-29 17:38:40 +02:00
2009-10-09 09:56:07 +02:00
2007-10-11 13:29:09 -04:00
2007-10-11 13:29:09 -04:00
2009-08-28 18:21:54 +02:00
2009-10-24 09:57:31 +03:00
2009-09-10 15:30:03 +05:00
2009-06-01 16:00:38 +04:00
2009-11-03 20:45:52 +03:00
2009-02-07 16:50:31 +01:00
2009-08-28 18:21:54 +02:00
2009-09-29 17:38:40 +02:00
2007-10-11 13:29:09 -04:00
2008-11-27 12:33:04 +01:00
2009-10-08 16:21:07 +03:00
2007-10-16 16:11:50 -04:00
2009-07-28 22:44:28 +04:00
2008-11-22 01:10:38 +01:00
2008-11-22 01:10:38 +01:00
2008-08-25 21:18:22 +04:00
2009-06-01 16:00:38 +04:00
2007-10-11 14:37:45 -04:00
2009-11-03 20:45:52 +03:00
2009-09-29 17:38:40 +02:00
2009-09-29 17:38:40 +02:00
2008-07-03 23:41:22 +04:00
2008-07-03 23:41:22 +04:00
2009-04-29 07:59:10 +05:00
2009-04-29 07:59:10 +05:00
2009-04-29 07:59:10 +05:00
2008-01-23 13:26:41 -07:00
2009-08-28 18:21:54 +02:00
2009-06-17 16:56:44 +02:00
2009-10-27 15:02:58 +04:00
2009-06-17 16:56:44 +02:00
2009-11-03 18:20:08 +08:00
2009-10-20 11:00:07 -07:00
2008-12-10 18:16:21 +04:00
2007-10-16 16:11:50 -04:00
2009-09-17 17:25:52 +02:00
2009-06-17 16:56:44 +02:00
2009-11-03 20:45:52 +03:00
2009-11-03 20:45:52 +03:00
2009-01-14 18:50:51 +04:00
2009-05-15 12:11:07 +05:00
2009-10-23 16:35:06 +02:00
2009-10-30 11:56:32 +02:00
2009-11-03 20:45:52 +03:00
2009-06-29 16:00:47 +02:00
2009-06-17 16:56:44 +02:00
2009-09-17 17:25:52 +02:00
2009-06-17 16:56:44 +02:00
2009-07-31 15:28:15 -04:00