summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge and fix tree name.Davi Arnaut2008-08-121-1/+1
|\
| * Merge mysql-5.0-bugteam into mysql-5.0Davi Arnaut2008-08-1233-538/+3567
| |\ | |/ |/|
* | Bug#38486: Crash when using cursor protocolDavi Arnaut2008-08-111-19/+22
| | | | | | | | | | | | | | | | | | Post-merge fix: mysql_client_test.c is compiled by C compilers and some C compilers don't support mixed declarations and code and it's explicitly forbidden by ISO C90. tests/mysql_client_test.c: Don't mix declarations and code.
* | Merge mysql-5.0-bugteam -> local bugfix branchMarc Alff2008-08-114-8/+43
|\ \
| * | Bug#37302 (missing DBUG_RETURN macro in function "find_key_block" (5.0 only))Marc Alff2008-08-111-3/+3
| | | | | | | | | | | | | | | Fixed missing DBUG_RETURN in the function find_key_block
| * | Merge from bugteam 5.0 trunk.Chad MILLER2008-08-112-1/+34
| |\ \
| | * | Post-merge fix: Silence warning due to type mismatch.Davi Arnaut2008-08-111-4/+6
| | | | | | | | | | | | | | | | | | | | client/mysql_upgrade.c: Silence warning due to type mismatch.
| | * | AutomergeKristofer Pettersson2008-08-112-1/+34
| | |\ \
| | | * | Bug#38486 Crash when using cursor protocolKristofer Pettersson2008-08-112-1/+34
| | | | | | | | | | | | | | | | | | | | | | | | | Server side cursors were not initialized properly and this caused a reference to uninitialized memory.
| * | | | Backport compiler warning fix from 5.1-bugteam.Chad MILLER2008-08-111-4/+6
| |/ / /
* | | | Bug#38296 (low memory crash with many conditions in a query)Marc Alff2008-08-119-344/+1483
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fix is for 5.0 only : back porting the 6.0 patch manually The parser code in sql/sql_yacc.yy needs to be more robust to out of memory conditions, so that when parsing a query fails due to OOM, the thread gracefully returns an error. Before this fix, a new/alloc returning NULL could: - cause a crash, if dereferencing the NULL pointer, - produce a corrupted parsed tree, containing NULL nodes, - alter the semantic of a query, by silently dropping token values or nodes With this fix: - C++ constructors are *not* executed with a NULL "this" pointer when operator new fails. This is achieved by declaring "operator new" with a "throw ()" clause, so that a failed new gracefully returns NULL on OOM conditions. - calls to new/alloc are tested for a NULL result, - The thread diagnostic area is set to an error status when OOM occurs. This ensures that a request failing in the server properly returns an ER_OUT_OF_RESOURCES error to the client. - OOM conditions cause the parser to stop immediately (MYSQL_YYABORT). This prevents causing further crashes when using a partially built parsed tree in further rules in the parser. No test scripts are provided, since automating OOM failures is not instrumented in the server. Tested under the debugger, to verify that an error in alloc_root cause the thread to returns gracefully all the way to the client application, with an ER_OUT_OF_RESOURCES error.
* | | Bug#31605: mysql_upgrade relies on Linux /proc filesystem when not \Chad MILLER2008-08-071-83/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | running on Windows We used two OS-specific methods of looking up the executable name, which don't work outside of those two kinds of OSes (Linux+Solaris and Windows). We assume that if the user ran this program with a certain name, we can run the other sibling programs with a similar name. (re-patch in bzr)
* | | Bug#37201: make tags doesn't work in bazaar server treesChad MILLER2008-08-061-2/+5
| | | | | | | | | | | | | | | | | | | | | Fall back to "find" if bzr is unavailable. Don't fail for paths that have spaces in them.
* | | Bug#37201: make tags doesn't work in bazaar server treesChad MILLER2008-08-061-1/+1
| | | | | | | | | | | | | | | bk sfiles -> bzr ls
* | | automergeKristofer Pettersson2008-08-049-15/+143
|\ \ \ | |/ / |/| |
| * | Bug#34159: mysql_install_db fails with sql_mode=TRADITIONALGeorgi Kodinov2008-07-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Reset session sql_mode before creating system tables as it is done in the mysql_fix_privilege_tables.sql script. scripts/mysql_system_tables.sql: reset sql mode
| * | Bug#37662 nested if() inside sum() is parsed in exponential timeGeorgi Kodinov2008-07-305-15/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | min() and max() functions are implemented in MySQL as macros. This means that max(a,b) is expanded to: ((a) > (b) ? (a) : (b)) Note how 'a' is quoted two times. Now imagine 'a' is a recursive function call that's several 10s of levels deep. And the recursive function does max() with a function arg as well to dive into recursion. This means that simple function call can take most of the clock time. Identified and fixed several such calls to max()/min() : including the IF() sql function implementation. mysql-test/r/func_if.result: Bug#37662 test case mysql-test/t/func_if.test: Bug#37662 test case sql/item.cc: Bug#37662 don't call expensive functions as arguments to min/max sql/item_cmpfunc.cc: Bug#37662 don't call expensive functions as arguments to min/max sql/item_func.cc: Bug#37662 don't call expensive functions as arguments to min/max
| * | MergeIgor Babaev2008-07-283-0/+29
| |\ \
| | * | Fixed bug #38191.Igor Babaev2008-07-263-0/+29
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Calling List<Cached_item>::delete_elements for the same list twice caused a crash of the server in the function JOIN::cleaunup. Ensured that delete_elements() in JOIN::cleanup would be called only once. mysql-test/r/subselect.result: Added a test case for bug #38191. mysql-test/t/subselect.test: Added a test case for bug #38191. sql/sql_select.cc: Fixed bug #38191. Ensured that delete_elements() in JOIN::cleanup would be called only once.
* | | Bug#29738 Error message not properly translated to SerbianKristofer Pettersson2008-07-291-1/+1
| | | | | | | | | | | | | | | Community contribution fix for Serbian translation in error message list.
* | | Bug#37781 mysql_drop_user calls get_current_user() twice for no reasonKristofer Pettersson2008-07-291-1/+0
| | | | | | | | | | | | Fixed typo and removed duplicate call to get_current_user.
* | | auto mergeKristofer Pettersson2008-07-291-7/+24
|\ \ \ | |/ / |/| |
| * | Bug#21226 FLUSH PRIVILEGES does not provided feedback when it fails.Kristofer Pettersson2008-06-181-7/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If during a FLUSH PRIVILEGES the server fails to load the new privilege tables, the error message is lost. This patch is a back port from 5.1 which adresses this issue by setting the server in an error state if a failure occurrs. This patch also corrects an incorrect variable assignment which might cause an error state to be reverted by coincidence. sql/sql_parse.cc: * Set error state if acl_reload or grant_reload fails. * Fix bad variable assignment which cancels previous error status.
* | | Cherry-pick Bug#33362 from mysql-5.1Davi Arnaut2008-07-243-1/+1729
| | |
* | | Bug#37830 : ORDER BY ASC/DESC - no differenceGeorgi Kodinov2008-07-235-82/+86
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Range scan in descending order for c <= <col> <= c type of ranges was ignoring the DESC flag. However some engines like InnoDB have the primary key parts as a suffix for every secondary key. When such primary key suffix is used for ordering ignoring the DESC is not valid. But we generally would like to do this because it's faster. Fixed by performing only reverse scan if the primary key is used. Removed some dead code in the process. mysql-test/r/innodb_mysql.result: Bug#37830 : test case mysql-test/t/innodb_mysql.test: Bug#37830 : test case sql/opt_range.cc: Bug#37830 : - preserve and use used_key_parts to distinguish when a primary key suffix is used - removed some dead code sql/opt_range.h: Bug#37830 : - preserve used_key_parts - dead code removed sql/sql_select.cc: Bug#37830 : Do only reverse order traversal if the primary key suffix is used.
* | merge 5.0->5.0-bugteamKristofer Pettersson2008-07-225-29/+67
|\ \
| * \ Merge latest changes from 5.0-buildTimothy Smith2008-07-200-0/+0
| |\ \
| | * \ Merge from mysql-5.0.66-releaseunknown2008-07-191-1/+1
| | |\ \
| * | \ \ Merge 5.0.66a-release changesTimothy Smith2008-07-183-27/+58
| |\ \ \ \ | | |/ / / | |/| | |
| | * | | Merge in changes from mysql-5.0.66a-release into 5.0.Timothy Smith2008-07-173-27/+58
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Includes fix for Bug #38180, "options are read from ~/my.cnf instead of ~/.my.cnf"
| | | * | | Set version to 5.0.66aunknown2008-07-171-1/+1
| | | | | |
| | | * | | Bug #38180 options are read from ~/my.cnf instead of ~/.my.cnfTimothy Smith2008-07-163-26/+57
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pull out some of unpack_dirname() into normalize_dirname(); this new function does not expand "~" to the home directory. Use this function in unpack_dirname(), and use it during init_default_directories() to remove duplicate entries without losing track of which directory is a user's home dir.
| | | * | fixed a compilation warning on windows 64.Georgi Kodinov2008-07-091-1/+1
| | | | |
| | | * | automatic merge of 5.0-bugteam into the 5.0.66 release clone.Georgi Kodinov2008-07-0944-268/+432
| | | |\ \
| * | | \ \ Merge from mysql-5.0.60sp1-releaseJonathan Perkin2008-07-160-0/+0
| |\ \ \ \ \
| | * | | | | Revert NDB version bump completely.Jonathan Perkin2008-06-271-1/+1
| | | | | | |
| | * | | | | Try different sp1 suffix for NDB.Jonathan Perkin2008-06-271-1/+1
| | | | | | |
| | * | | | | Version number bump for 5.0.60sp1Jonathan Perkin2008-06-271-2/+2
| | | | | | |
| * | | | | | Merge main 5.0 into 5.0-buildJoerg Bruehe2008-07-1452-304/+632
| |\ \ \ \ \ \ | | | |/ / / / | | |/| | | |
| * | | | | | Merge from main 5.0 to 5.0-build.Joerg Bruehe2008-07-099-7/+37
| |\ \ \ \ \ \
| * | | | | | | ild can not be expected on all matching installsDaniel Fischer2008-07-051-3/+9
| | | | | | | |
| * | | | | | | Take the fix for bug#37623 (Suffix "-64bit" is duplicated)Joerg Bruehe2008-06-271-0/+1
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into the 5.0-build team tree.
| | * | | | | | | OS X 10.5 is now a supported platform,Joerg Bruehe2008-06-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | so Apple's internal name ("darwin9") must be translated to ours ("osx10.5").
| * | | | | | | | Merge the main 5.0 tree into 5.0-build.Joerg Bruehe2008-06-26168-6313/+12396
| |\ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|/ | |/| | | | | | |
* | | | | | | | | Auto mergeKristofer Pettersson2008-07-217-9/+40
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | Bug 38158: mysql client regression, can't read dump filesGeorgi Kodinov2008-07-184-9/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Revert the fix for bug 33812 - fixed a win32 warning client/mysql.cc: revert the fix for bug 33812 mysql-test/r/mysql.result: revert the fix for bug 33812 mysql-test/t/mysql_delimiter.sql: revert the fix for bug 33812 mysys/default.c: fixed a win32 warning
| * | | | | | | | | Bug#27934 test client_xml misssing initializationAlexander Barkov2008-07-182-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: missing initialization, if the previous test fails leaving table t1, client_xml fails as well. Fix: adding initialization.
| * | | | | | | | | Folow-up on Bug#37069: fix a valgrind warningGeorgi Kodinov2008-07-171-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't initalize federated if it's disabled by a command line option. sql/ha_federated.cc: Folow-up on Bug#37069: Don't initalize federated if it's disabled by a command line option.
* | | | | | | | | | Bug#37027 expire_logs_days and missing binlogs cause a crash !Kristofer Pettersson2008-07-241-45/+97
|/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the server failed to expired log files during start up it could crash. sql/log.cc: Added predicate to protect againt cases when current_thd might be NULL.
* | | | | | | | | Bug#30087 Set query_cache_size, if the value is too small, get a unclear warningMarc Alff2008-07-165-43/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reverting the previous patch