1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-28 13:01:41 +03:00
gkodinov@mysql.com 395affb8e9 Bug #15355: Common natural join column not resolved in prepared statement nested
query
Problem:
There was a wrong context assigned to the columns that were added in insert_fields()
when expanding a '*'. When this is done in a prepared statement it causes 
fix_fields() to fail to find the table that these columns reference.
Actually the right context is set in setup_natural_join_row_types() called at the 
end of setup_tables(). However when executed in a context of a prepared statement
setup_tables() resets the context, but setup_natural_join_row_types() was not
setting it to the correct value assuming it has already done so.

Solution:
The top-most, left-most NATURAL/USING join must be set as a 
first_name_resolution_table in context even when operating on prepared statements.
2006-06-08 13:34:03 +03:00
..
2005-11-26 08:54:13 +01:00
2005-09-30 14:03:55 +02:00
2005-11-03 22:42:25 +02:00
2006-05-09 13:31:46 -07:00
2006-03-30 17:14:55 +04:00
2006-04-13 17:22:56 +09:30
2006-05-09 13:31:46 -07:00
2006-04-13 17:22:56 +09:30
2005-08-12 13:54:42 +03:00
2005-07-25 12:57:23 -07:00
2006-04-26 01:21:33 +04:00
2006-04-20 00:42:12 -07:00
2006-04-20 00:42:12 -07:00
2005-06-07 00:31:53 +03:00
2006-04-04 17:54:58 -07:00
2006-05-24 17:21:35 +03:00
2006-03-10 12:12:08 +01:00
2005-06-07 00:31:53 +03:00
2005-05-26 21:01:55 +02:00
2006-04-13 17:22:56 +09:30
2006-05-07 16:14:43 -07:00
2006-05-06 23:48:13 -07:00
2005-08-12 17:57:19 +03:00
2006-05-07 16:14:43 -07:00
2006-04-13 17:22:56 +09:30
2005-12-14 01:21:56 +02:00
2006-05-03 21:35:27 -07:00
2006-04-21 08:19:38 -07:00
2006-05-04 22:19:31 +03:00
2005-07-31 12:49:55 +03:00