summaryrefslogtreecommitdiff
path: root/mysql-test
Commit message (Collapse)AuthorAgeFilesLines
* Merge mysql.com:/home/gluh/MySQL/Merge/5.1gluh@eagle.(none)2007-02-281-15/+15
|\ | | | | | | into mysql.com:/home/gluh/MySQL/Merge/5.1-opt
| * Remove compiler warningsmonty@mysql.com/narttu.mysql.fi2007-02-271-15/+15
| |
* | Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-5.1-optsergefp@pylon.mylan2007-02-272-0/+112
|\ \ | | | | | | | | | into mysql.com:/home/psergey/mysql-5.1-bug26117
| * | BUG#26117 "index_merge sort-union over partitioned table crashes"sergefp@mysql.com2007-02-272-0/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before the fix: ha_partition objects had ha_partition::m_part_info==NULL and that caused crash After: - The new ha_partition::clone() function makes the clones use parent's m_part_info value. - The parent ha_partition object remains responsible for deallocation of m_part_info.
* | | after merge fixgluh@mysql.com/eagle.(none)2007-02-271-0/+11
| | |
* | | after merge fixgluh@mysql.com/eagle.(none)2007-02-262-2/+2
| | |
* | | Merge mysql.com:/home/gluh/MySQL/Merge/5.1gluh@eagle.(none)2007-02-2619-63/+508
|\ \ \ | |_|/ |/| | | | | into mysql.com:/home/gluh/MySQL/Merge/5.1-opt
| * | after merge fixgluh@mysql.com/eagle.(none)2007-02-264-36/+7
| | |
| * | Merge mysql.com:/home/gluh/MySQL/Merge/5.0-optgluh@eagle.(none)2007-02-2617-30/+461
| |\ \ | | |/ | |/| | | | into mysql.com:/home/gluh/MySQL/Merge/5.1-opt
| | * Merge mhansson@bk-internal.mysql.com:/home/bk/mysql-5.0-optmhansson@dl145s.mysql.com2007-02-222-0/+45
| | |\ | | | | | | | | | | | | into dl145s.mysql.com:/users/mhansson/mysql/autopush/5.0o-bug24010
| | | * Bug #24010: INSERT INTO ... SELECT fails on unique constraint with data mhansson/martin@linux-st28.site2007-02-222-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | it doesn't select. This bug was fixed along with bug #16861: User defined variable can have a wrong value if a tmp table was used. There the fix consisted of Item_func_set_user_var overloading the method Item::save_in_field. Consider the query from the test case: INSERT INTO foo( bar, baz ) SELECT bar, @newBaz := 1 + baz FROM foo WHERE quux <= 0.1; Here the assignment expression '@newBaz := 1 + baz' is represented by an Item_func_set_user_var. Its member method save_in_field, which writes the value of this assignment into the result field, writes the val_xxx() value, which is not updated at this point. In the fix introduced by the patch, the save_in_field method reads the actual variable value instead. See also comment for ChangeSet@1.2368.1.3, 2007-01-09 23:24:56+03:00, evgen@moonbone.local +4 -0 and comment for Item_func_set_user_var::save_in_field (item_func.cc)
| | * | Merge moonbone.local:/mnt/gentoo64/work/bk-trees/mysql-5.0-optevgen@moonbone.local2007-02-213-21/+90
| | |\ \ | | | | | | | | | | | | | | | into moonbone.local:/mnt/gentoo64/work/23800-bug1-5.0-opt-mysql
| | | * | Bug#23800: Outer fields in correlated subqueries is used in a temporary tableevgen@moonbone.local2007-02-213-21/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | created for sorting. Any outer reference in a subquery was represented by an Item_field object. If the outer select employs a temporary table all such fields should be replaced with fields from that temporary table in order to point to the actual data. This replacement wasn't done and that resulted in a wrong subquery evaluation and a wrong result of the whole query. Now any outer field is represented by two objects - Item_field placed in the outer select and Item_outer_ref in the subquery. Item_field object is processed as a normal field and the reference to it is saved in the ref_pointer_array. Thus the Item_outer_ref is always references the correct field. The original field is substituted for a reference in the Item_field::fix_outer_field() function. New function called fix_inner_refs() is added to fix fields referenced from inner selects and to fix references (Item_ref objects) to these fields. The new Item_outer_ref class is a descendant of the Item_direct_ref class. It additionally stores a reference to the original field and designed to behave more like a field.
| | * | | Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.0-optgkodinov/kgeorge@rakia.gmz2007-02-192-0/+40
| | |\ \ \ | | | | | | | | | | | | | | | | | | into rakia.gmz:/home/kgeorge/mysql/autopush/B19717-5.0-opt
| | | * \ \ Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.0-optgkodinov/kgeorge@rakia.gmz2007-02-192-0/+40
| | | |\ \ \ | | | | | | | | | | | | | | | | | | | | | into rakia.gmz:/home/kgeorge/mysql/autopush/B25831-5.0-opt
| | | | * | | Bug #25831: Deficiencies in INSERT ... SELECT ... field name resolving.gkodinov/kgeorge@macbook.gmz2007-02-192-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Several problems fixed: 1. There was a "catch-all" context initialization in setup_tables() that was causing the table that we insert into to be visible in the SELECT part of an INSERT .. SELECT .. statement with no tables in its FROM clause. This was making sure all the under-initialized contexts in various parts of the code are not left uninitialized. Fixed by removing the "catch-all" statement and initializing the context in the parser. 2. Incomplete name resolution context when resolving the right-hand values in the ON DUPLICATE KEY UPDATE ... part of an INSERT ... SELECT ... caused columns from NATURAL JOIN/JOIN USING table references in the FROM clause of the select to be unavailable. Fixed by establishing a proper name resolution context. 3. When setting up the special name resolution context for problem 2 there was no check for cases where an aggregate function without a GROUP BY effectively takes the column from the SELECT part of an INSERT ... SELECT unavailable for ON DUPLICATE KEY UPDATE. Fixed by checking for that condition when setting up the name resolution context.
| | * | | | | Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.0-optgkodinov/kgeorge@rakia.gmz2007-02-199-6/+228
| | |\ \ \ \ \ | | | |/ / / / | | | | | | | | | | | | | | into rakia.gmz:/home/kgeorge/mysql/autopush/B19717-5.0-opt
| | | * | | | Adjusted results after fix for bug 25971.igor@olga.mysql.com2007-02-161-1/+1
| | | | | | |
| | | * | | | Adjusted results after fix for bug 25971.igor@olga.mysql.com2007-02-161-1/+1
| | | | | | |
| | | * | | | Merge ibabaev@bk-internal.mysql.com:/home/bk/mysql-5.0-optigor@olga.mysql.com2007-02-162-0/+28
| | | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | into olga.mysql.com:/home/igor/mysql-5.0-opt
| | | | * \ \ \ Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0-optevgen@moonbone.local2007-02-162-0/+28
| | | | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | into moonbone.local:/mnt/gentoo64/work/16630-bug-5.0-opt-mysql
| | | | | * | | | Bug#16630: The update fields of the INSERT .. SELECT .. ON DUPLICATE KEYevgen@moonbone.local2007-02-162-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | UPDATE contains wrong data if the SELECT employs a temporary table. If the UPDATE values of the INSERT .. SELECT .. ON DUPLICATE KEY UPDATE statement contains fields from the SELECT part and the select employs a temporary table then those fields will contain wrong values because they aren't corrected to get data from the temporary table. The solution is to add these fields to the selects all_fields list, to store pointers to those fields in the selects ref_pointer_array and to access them via Item_ref objects. The substitution for Item_ref objects is done in the new function called Item_field::update_value_transformer(). It is called through the item->transform() mechanism at the end of the select_insert::prepare() function.
| | | * | | | | | Fixed bug #25971: indexes on text columns were ignored when ref accessesigor@olga.mysql.com2007-02-146-5/+199
| | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | were evaluated. According to the new rules for string comparison partial indexes on text columns can be used in the same cases when partial indexes on varchar columns can be used.
| | * | | | | | Bug#19717: The blackhole engine is returning an OK flag in gkodinov/kgeorge@macbook.gmz2007-02-142-0/+26
| | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | index_read(), whereas it must return HA_ERR_END_OF_FILE instead (as there are by definition no rows in a table of that engine.
| | * | | | | Post-merge fixigor@olga.mysql.com2007-02-132-2/+0
| | | | | | |
| | * | | | | Merge bk-internal.mysql.com:/data0/bk/mysql-5.0ibabaev@bk-internal.mysql.com2007-02-1318-6/+562
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | into bk-internal.mysql.com:/data0/bk/mysql-5.0-opt
| | * \ \ \ \ \ Merge pilot.mysql.com:/home/msvensson/mysql/mysql-5.0msvensson@pilot.mysql.com2007-02-13218-0/+719243
| | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | into pilot.mysql.com:/home/msvensson/mysql/mysql-5.0-maint
| | * \ \ \ \ \ \ Merge tnurnberg@bk-internal.mysql.com:/home/bk/mysql-5.0-mainttnurnberg@mysql.com/sin.azundris.com2007-02-122-1/+46
| | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into mysql.com:/home/tnurnberg/24660/50-24660
| | | * \ \ \ \ \ \ Merge mysql.com:/home/tnurnberg/24660/41-24660tnurnberg@mysql.com/sin.azundris.com2007-02-122-1/+46
| | | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into mysql.com:/home/tnurnberg/24660/50-24660
| | | | * | | | | | | Bug#24660: "enum" field type definition problemtnurnberg@mysql.com/sin.azundris.com2007-02-122-1/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ENUMs weren't allowed to have character 0xff, a perfectly good character in some locales. This was circumvented by mapping 0xff in ENUMs to ',', thereby prevent actual commas from being used. Now if 0xff makes an appearance, we find a character not used in the enum and use that as a separator. If no such character exists, we throw an error. Any solution would have broken some sort of existing behaviour. This solution should serve both fractions (those with 0xff and those with ',' in their enums), but WILL REQUIRE A DUMP/RESTORE CYCLE FROM THOSE WITH 0xff IN THEIR ENUMS. :-/ That is, mysqldump with their current server, and restore when upgrading to one with this patch.
| | * | | | | | | | | Merge siva.hindu.god:/home/tsmith/m/bk/50tsmith@siva.hindu.god2007-02-082-0/+62
| | |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into siva.hindu.god:/home/tsmith/m/bk/maint/50
| * | \ \ \ \ \ \ \ \ \ Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.1-optgkodinov/kgeorge@rakia.gmz2007-02-162-36/+79
| |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into rakia.gmz:/home/kgeorge/mysql/autopush/B20420-5.1-opt
| | * | | | | | | | | | | BUG#20420: optimizer reports wrong keys on left join with INgkodinov/kgeorge@macbook.gmz2007-02-162-36/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When checking if an IN predicate can be evaluated using a key the optimizer makes sure that all the arguments of IN are of the same result type. To assure that it check whether Item_func_in::array is filled in. However Item_func_in::array is set if the types are the same AND all the arguments are compile time constants. Fixed by introducing Item_func_in::arg_types_compatible flag to allow correct checking of the desired condition.
* | | | | | | | | | | | | Fixed compiler warningsmonty@mysql.com/narttu.mysql.fi2007-02-2315-126/+176
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed compile-pentium64 scripts Fixed wrong estimate of update_with_key_prefix in sql-bench Merge bk-internal.mysql.com:/home/bk/mysql-5.1 into mysql.com:/home/my/mysql-5.1 Fixed unsafe define of uint4korr() Fixed that --extern works with mysql-test-run.pl Small trivial cleanups This also fixes a bug in counting number of rows that are updated when we have many simultanous queries Move all connection handling and command exectuion main loop from sql_parse.cc to sql_connection.cc Split handle_one_connection() into reusable sub functions. Split create_new_thread() into reusable sub functions. Added thread_scheduler; Preliminary interface code for future thread_handling code. Use 'my_thread_id' for internal thread id's Make thr_alarm_kill() to depend on thread_id instead of thread Make thr_abort_locks_for_thread() depend on thread_id instead of thread In store_globals(), set my_thread_var->id to be thd->thread_id. Use my_thread_var->id as basis for my_thread_name() The above changes makes the connection we have between THD and threads more soft. Added a lot of DBUG_PRINT() and DBUG_ASSERT() functions Fixed compiler warnings Fixed core dumps when running with --debug Removed setting of signal masks (was never used) Made event code call pthread_exit() (portability fix) Fixed that event code doesn't call DBUG_xxx functions before my_thread_init() is called. Made handling of thread_id and thd->variables.pseudo_thread_id uniform. Removed one common 'not freed memory' warning from mysqltest Fixed a couple of usage of not initialized warnings (unlikely cases) Suppress compiler warnings from bdb and (for the moment) warnings from ndb
* | | | | | | | | | | | | Merge ↵tomas@poseidon.mysql.com2007-02-212-0/+35
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mysqldev@production.mysql.com:/data0/mysqldev/my/build-200702202011-5.1.16-beta/mysql-5.1-release into poseidon.mysql.com:/home/tomas/mysql-5.1-new-ndb
| * \ \ \ \ \ \ \ \ \ \ \ \ Merge bk-internal.mysql.com:/home/bk/mysql-5.1istruewing@chilla.local2007-02-162-0/+35
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into chilla.local:/home/mydev/mysql-5.1-axmrg
| | * \ \ \ \ \ \ \ \ \ \ \ \ Merge bk-internal.mysql.com:/home/bk/mysql-5.1istruewing@chilla.local2007-02-1418-80/+587
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into chilla.local:/home/mydev/mysql-5.1-axmrg
| | * | | | | | | | | | | | | Merge bk-internal.mysql.com:/home/bk/mysql-5.1istruewing@chilla.local2007-02-132-0/+35
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into chilla.local:/home/mydev/mysql-5.1-bug25460
| | | * \ \ \ \ \ \ \ \ \ \ \ \ Merge ppcg5.local:/Users/antony/Work/p3-bug12204.4antony@ppcg5.local2007-02-082-0/+35
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into ppcg5.local:/Users/antony/Work/p3-bug12204.5
| | | | * | | | | | | | | | | | | Bug#12204antony@ppcg5.local2007-02-072-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "CONNECTION is a reserved keyword" Allow connection to be used as an ordinary identifier Tests included.
* | | | | | | | | | | | | | | | | Bug #26490 duplicate cluster error codetomas@poseidon.mysql.com2007-02-211-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - fixed error code - added test program run in mysql-test-run bk version
* | | | | | | | | | | | | | | | | Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1tomas@poseidon.mysql.com2007-02-1756-697685/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into poseidon.mysql.com:/home/tomas/mysql-5.1-new-ndb
| * | | | | | | | | | | | | | | | Merge trift2.:/MySQL/M51/mysql-5.1joerg@trift2.2007-02-1556-697685/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|/ / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into trift2.:/MySQL/M51/push-5.1
| | * | | | | | | | | | | | | | | objects is only for internal use.hhunger@hh-nb.hungers2007-02-1356-697685/+0
| | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1tomas@poseidon.mysql.com2007-02-152-3/+3
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into poseidon.mysql.com:/home/tomas/mysql-5.1-new-ndb
| * | | | | | | | | | | | | | | | Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1tomas@poseidon.mysql.com2007-02-142-3/+3
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |_|/ / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into poseidon.mysql.com:/home/tomas/mysql-5.1-new-ndb
| | * | | | | | | | | | | | | | | Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1tomas@poseidon.mysql.com2007-02-133-0/+6
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into poseidon.mysql.com:/home/tomas/mysql-5.1-new-ndb
| | * | | | | | | | | | | | | | | Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1tomas@poseidon.mysql.com2007-02-12509-0/+2007065
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into poseidon.mysql.com:/home/tomas/mysql-5.1-new-ndb
| | * | | | | | | | | | | | | | | | Enabled engine_condition_pushdown (on) as defaultmskold/marty@mysql.com/linux.site2007-02-092-3/+3
| | | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | Post-merge fixigor@olga.mysql.com2007-02-132-101/+31
| | | | | | | | | | | | | | | | | |