summaryrefslogtreecommitdiff
path: root/sql/item_subselect.cc
Commit message (Collapse)AuthorAgeFilesLines
* Merge mysql.com:/home/jimw/my/mysql-5.0-cleanjimw@mysql.com2005-12-121-0/+4
|\ | | | | | | into mysql.com:/home/jimw/my/mysql-5.1-clean
| * Merge rurik.mysql.com:/home/igor/mysql-5.0igor@rurik.mysql.com2005-11-221-13/+13
| |\ | | | | | | | | | into rurik.mysql.com:/home/igor/dev/mysql-5.0-2
| * | Fixed bug #12762:igor@rurik.mysql.com2005-10-151-0/+4
| | | | | | | | | | | | allowed set functions aggregated in outer subqueries, allowed nested set functions.
* | | Merge mysql.com:/home/my/mysql-5.1monty@mysql.com2005-11-231-5/+8
|\ \ \ | | | | | | | | | | | | into mysql.com:/home/my/mysql-5.1-TDC
| * | | Table definition cache, part 2monty@mysql.com2005-11-231-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The table opening process now works the following way: - Create common TABLE_SHARE object - Read the .frm file and unpack it into the TABLE_SHARE object - Create a TABLE object based on the information in the TABLE_SHARE object and open a handler to the table object Other noteworthy changes: - In TABLE_SHARE the most common strings are now LEX_STRING's - Better error message when table is not found - Variable table_cache is now renamed 'table_open_cache' - New variable 'table_definition_cache' that is the number of table defintions that will be cached - strxnmov() calls are now fixed to avoid overflows - strxnmov() will now always add one end \0 to result - engine objects are now created with a TABLE_SHARE object instead of a TABLE object. - After creating a field object one must call field->init(table) before using it - For a busy system this change will give you: - Less memory usage for table object - Faster opening of tables (if it's has been in use or is in table definition cache) - Allow you to cache many table definitions objects - Faster drop of table
* | | | Merge a193-229-222-105.elisa-laajakaista.fi:/home/my/bk/mysql-5.0jani@a193-229-222-105.elisa-laajakaista.fi2005-11-231-13/+13
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| into a193-229-222-105.elisa-laajakaista.fi:/home/my/bk/mysql-5.1-new
| * | Inefficient usage of String::append() fixed.bell@sanja.is.com.ua2005-11-201-13/+13
| |/ | | | | | | | | | | | | Bad examples of usage of a string with its length fixed. The incorrect length in the trigger file configuration descriptor fixed (BUG#14090). A hook for unknown keys added to the parser to support old .TRG files.
* | Merge mysql.com:/home/my/mysql-5.0monty@mysql.com2005-11-051-0/+6
|\ \ | |/ | | | | into mysql.com:/home/my/mysql-5.1
| * A fix and a test case for Bug#12736 "Server crash during a select".konstantin@mysql.com2005-10-131-0/+6
| | | | | | | | | | | | The bug was in JOIN::join_free which was wrongly determining that all joins have been already executed and therefore all used tables can be closed.
* | Mergetomas@poseidon.ndb.mysql.com2005-10-061-1/+1
|\ \ | |/
| * A fix and a test case for Bug#6513 "Test Suite: Values inserted by using konstantin@mysql.com2005-09-221-1/+1
| | | | | | | | | | | | | | | | | | | | cursor is interpreted latin1 character and Bug#9819 "Cursors: Mysql Server Crash while fetching from table with 5 million records." A fix for a possible memory leak when fetching into an SP cursor in a long loop. The patch uses a common implementation of cursors in the binary protocol and in stored procedures and implements materialized cursors. For implementation details, see comments in sql_cursor.cc
* | Mergendbdev@dl145c.mysql.com2005-09-061-6/+6
|\ \ | |/
| * Rename:konstantin@mysql.com2005-09-021-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - current_arena to stmt_arena: the thread may have more than one 'current' arenas: one for runtime data, and one for the parsed tree of a statement. Only one of them is active at any moment. - set_item_arena -> set_query_arena, because Item_arena was renamed to Query_arena a while ago - set_n_backup_item_arena -> set_n_backup_active_arena; the active arena is the arena thd->mem_root and thd->free_list are currently pointing at. - restore_backup_item_arena -> restore_active_arena (with the same rationale) - change_arena_if_needed -> activate_stmt_arena_if_needed; this method sets thd->stmt_arena active if it's not done yet.
* | Merge mronstrom@bk-internal.mysql.com:/home/bk/mysql-5.0pappa@c-4a09e253.1238-1-64736c10.cust.bredbandsbolaget.se2005-08-251-39/+150
|\ \ | |/ | | | | into c-4a09e253.1238-1-64736c10.cust.bredbandsbolaget.se:/home/pappa/mysql-5.1
| * item_subselect.cc:sanja@hasky.mysql.fi2005-08-131-17/+25
| | | | | | | | | | | | postmerge fix subselect.result: new 5.0 result (postmerge)
| * Merge abelkin@bk-internal.mysql.com:/home/bk/mysql-4.1sanja@hasky.mysql.fi2005-08-131-44/+134
| |\ | | | | | | | | | into hasky.mysql.fi:/home/sanja/work-merge-5.0
| | * fixed convertion and handling IN subqueries with rows (BUG#11867)bell@50.0.168.192.in-addr.arpa2005-08-131-36/+135
| | |
| * | Merge bk-internal.mysql.com:/home/bk/mysql-5.0dlenev@mysql.com2005-08-111-0/+8
| |\ \ | | | | | | | | | | | | into mysql.com:/home/dlenev/src/mysql-5.0-bg11973-2
| | * | Clumsy but working fix for bug #11973 "SELECT .. INTO var_name; in triggerdlenev@mysql.com2005-08-101-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cause crash on update". Let us update "thd" pointer in LEX, all its units and in LEX::result before executing statement in trigger body, since triggers are associated with TABLE object and because of this can be used in different threads.
| * | | Manual mergeigor@rurik.mysql.com2005-08-071-5/+10
| |\ \ \ | | |/ / | |/| / | | |/
| | * subselect.result:igor@rurik.mysql.com2005-08-071-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added test case for bug #11867. Fixed results for two existing test cases. subselect.test: Added test case for bug #11867. item_subselect.cc: Fixed bug #11867. Added missing code in Item_in_subselect::row_value_transformer that caused problems for queries with ROW(elems) IN (SELECT DISTINCT cols FROM ...).
* | | Patch for push of wl1354 Partitioningmronstrom@mysql.com2005-07-181-2/+2
|/ /
* | Name resolution context added (BUG#6443)bell@sanja.is.com.ua2005-07-011-23/+27
| |
* | A fix and a test case for Bug#10736 "mysql_stmt_attr_set konstantin@mysql.com2005-06-281-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | CURSOR_TYPE_READ_ONLY select within select". The bug was caused by the reset of thd->mem_root to thd->main_mem_root in Item_subselect::exec, which in turn triggered too early free_root() for data which was needed on subsequent fetches from a cursor. This reset also caused a memory leak in stored procedures, as subsequent executions of instructions containing a subselect were allocating memory in thd->main_mem_root, which is not freed until the end of the entire SP, instead of the per-call mem_root, which is freed in the end of execution of the instruction.
* | Manual mergeigor@rurik.mysql.com2005-06-231-2/+2
|\ \ | |/
| * func_str.result, func_str.test:igor@rurik.mysql.com2005-06-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | Added a test case for bug #10124. sql_select.h, item_subselect.cc, sql_select.cc: Fixed bug #10124. The copy method of the store_key classes can return STORE_KEY_OK=0, STORE_KEY_FATAL=1, STORE_KEY_CONV=2 now. field.cc: Fixed bug #10124. When ussuing a warning the store methods return 2 instead of 1 now.
* | renamed:serg@serg.mylan2005-06-151-2/+2
| | | | | | | | | | | | Item_buff -> Cached_item Item_arena -> Query_arena TEST_ASSERT -> YYERROR_UNLESS
* | A fix (bug #11153: Ambiguous call to overloaded function, acording to Visual ↵ramil@mysql.com2005-06-081-1/+1
| | | | | | | | Studio 6)
* | Manual merge.konstantin@mysql.com2005-06-071-2/+2
|\ \
| * | Patch two (the final one) for Bug#7306 "the server side preparedStatementkonstantin@mysql.com2005-06-071-2/+2
| | | | | | | | | | | | | | | | | | | | | error for LIMIT placeholder". The patch adds grammar support for LIMIT ?, ? and changes the type of ST_SELECT_LEX::select_limit,offset_limit from ha_rows to Item*, so that it can point to Item_param.
* | | Merge with 4.1monty@mysql.com2005-06-071-2/+0
|\ \ \ | | |/ | |/|
| * | a compiler must see '#pragma implementation' *before*serg@serg.mylan2005-06-051-1/+2
| | | | | | | | | | | | '#pragma interface' (that comes with the #include'd header file)
| * | Move USE_PRAGMA_IMPLEMENTATION to proper placemonty@mysql.com2005-06-031-4/+1
| | | | | | | | | | | | | | | | | | Ensure that 'null_value' is not accessed before val() is called in FIELD() functions Fixed initialization of key maps. This fixes some problems with keys when you have more than 64 keys Fixed that ROLLUP don't always create a temporary table. This fix ensures that func_gconcat.test results are now predictable
* | | mergemonty@mysql.com2005-06-051-3/+2
|\ \ \ | |_|/ |/| |
| * | Code cleanups during code reviewsmonty@mysql.com2005-06-011-1/+1
| | | | | | | | | | | | | | | Ensure we get error if INSERT IGNORE ... SELECT fails Fixed wrong key_part->key_length usage in index_merge
| * | Merge bk-internal.mysql.com:/home/bk/mysql-5.0monty@mysql.com2005-05-311-2/+1
| |\ \ | | | | | | | | | | | | into mysql.com:/home/my/mysql-5.0
| | * \ Merge bk-internal.mysql.com:/home/bk/mysql-5.0monty@mysql.com2005-05-311-2/+1
| | |\ \ | | | | | | | | | | | | | | | into mysql.com:/home/my/mysql-5.0
| | | * | Fixed bug in multiple-table-delete where some rows was not deletedmonty@mysql.com2005-05-301-2/+1
| | | | |
* | | | | Give Item_arena::is_stmt_prepare a more descriptive name (it marks konstantin@mysql.com2005-06-031-1/+1
| | | | | | | | | | | | | | | | | | | | the code that is active for SP as well in 5.0)
* | | | | Merge of 4.1->5.0. This contained the fixes for GCC 4.0brian@zim.(none)2005-06-011-3/+2
|\ \ \ \ \ | |/ / / / |/| | | / | | |_|/ | |/| |
| * | | Mergebrian@zim.(none)2005-06-011-3/+0
| |\ \ \
| | * | | Mainly cleanups for gcc 4.0. Some small pieces from looking at -Wall. ↵brian@zim.(none)2005-06-011-3/+0
| | | | | | | | | | | | | | | | | | | | Removed a number of dumb things in ha_tina.
| * | | | tztime.cc:kent@mysql.com2005-06-021-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set #pragma implementation" earlier Many files: Need to include <my_global.h> before #ifdef USE_PRAGMA_IMPLEMENTATION
* | | | | Merge mysql.com:/usr/local/bk/mysql-5.0pem@mysql.com2005-05-311-12/+9
|\ \ \ \ \ | | |_|/ / | |/| | | | | | | | into mysql.com:/home/pem/work/mysql-5.0
| * | | | Merge bk-internal.mysql.com:/home/bk/mysql-5.0konstantin@mysql.com2005-05-301-12/+9
| |\ \ \ \ | | | | | | | | | | | | | | | | | | into mysql.com:/opt/local/work/mysql-5.0-7306-new
| | * | | | Preparatory (and the most problematic) patch for Bug#7306konstantin@mysql.com2005-05-301-12/+9
| | | |_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | "the server side preparedStatement error for LIMIT placeholder", which moves all uses of LIMIT clause from PREPARE to OPTIMIZE and later steps. After-review fixes.
* | | | | Post-review fixes of BUG#9937: Crash on call to stored procedure.pem@mysql.comhem.se2005-05-311-1/+1
| | | | |
* | | | | Merge mysql.com:/usr/local/bk/mysql-5.0pem@mysql.com2005-05-301-1/+1
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | into mysql.com:/home/pem/work/mysql-5.0
| * | | | Fixed BUG#9937: Crash on call to stored procedure.pem@mysql.comhem.se2005-05-261-1/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This only showed up on two known platforms, both ia64 (one HP-UX and one Linux wich icc). For some reason, they only get half the stack size they are supposed to have, which makes deep SP recursion overrun the stack before check_stack_overrun() is triggered. Also made som minor fixes in the check_stack_overrun() definition, supporting variable margins. No test case added, but the reason for the bug report was a failed existing test case on these machines, which now works.
* | | | Merge from 4.1msvensson@neptunus.(none)2005-05-261-1/+1
|\ \ \ \ | |/ / / |/| / / | |/ /