summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Bug #50642 : ssl certs in test suite are expiring soon.Georgi Kodinov2010-01-299-347/+317
| | | | Updated the certs to expire on 2015. Made sure they work with both yassl and openssl.
* Fix for bug#49897: crash in ptr_compare when char(0) NOT NULL Ramil Kalimullin2010-01-294-0/+119
| | | | | | | | | | column is used for ORDER BY Problem: filesort isn't meant for null length sort data (e.g. char(0)), that leads to a server crash. Fix: disregard sort order if sort data record length is 0 (nothing to sort).
* Bug #49210 Enable MTR timeout configuration through environment variablesBjorn Munch2010-01-271-2/+4
| | | | | Define env. vars for both timeout settings This patch is for 5.0 (mtr v1) and should replaces for 5.1 up
* Bug#50409 Solaris 8 compatibility broken by assumption aboutStaale Smedseng2010-01-273-3/+3
| | | | | | | | | | | | printstack() being present When Bug#47391 was fixed, no assumption was made that support for Solaris 8 was needed. Solaris 8 lacks printstack(), and the build breaks because of this. This patch adds a test for the presence of printstack() to configure.in for 5.0, and uses HAVE_PRINTSTACK to make decisions rather than the __sun define.
* Auto-merge.Ramil Kalimullin2010-01-132-55/+69
|\
| * Fix for bug#50227: Pre-auth buffer-overflow in mySQL through yaSSLRamil Kalimullin2010-01-132-55/+69
| | | | | | | | | | | | | | | | | | | | Problem: copying issuer's (or subject's) name tags into an internal buffer from incoming stream we didn't check the buffer overflow. That may lead to memory overrun, crash etc. Fix: ensure we don't overrun the buffer. Note: there's no simple test case (exploit needed).
* | Implement the change of RPM versioning and file naming:Joerg Bruehe2010-01-123-10/+20
| | | | | | | | | | - "release" starts from 1 - "level" ("m2", "rc", ...) is included in the RPM version.
* | Merge from main tree,Joerg Bruehe2010-01-121-2/+2
|\ \ | |/ |/| | | but don't take the "tree name" change.
| * Raise version number after cloning 5.0.89karen.langford@sun.com2009-12-081-2/+2
| |
| * tree name change to -mainGeorgi Kodinov2009-12-021-1/+1
| |
* | Bug #49955: ld error message: undefined reference to `strmov_overlapp'Gleb Shchepa2010-01-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | 32bit builds with the --enable-assembler flag (enabled by default) fail with an error message: undefined reference to `strmov_overlapp'. Since the fix for bug 48866 we use a home-grown strmov function instead of the ctpcpy function, but the source file for this function was missed in the Makefile.am. The strings/Makefile.am file has been modified to include strmov.c file into ASSEMBLER_x86 and ASSEMBLER_sparc32 sections.
* | Bug #49137 Replication failure on SBR/MBR + multi-table DROP TEMPORARY TABLE2010-01-061-2/+2
| | | | | | Fixed valgrind failure on PB2.
* | Bug #49137 Replication failure on SBR/MBR + multi-table DROP TEMPORARY TABLE2010-01-061-2/+2
| | | | | | Fixed valgrind failure on PB2.
* | Bug #49137 Replication failure on SBR/MBR + multi-table DROP TEMPORARY TABLE2009-12-314-12/+58
| | | | | | | | | | | | | | | | | | | | | | | | In statement-based or mixed-mode replication, use DROP TEMPORARY TABLE to drop multiple tables causes different errors on master and slave, when one or more of these tables do not exist. Because when executed on slave, it would automatically add IF EXISTS to the query to ignore all ER_BAD_TABLE_ERROR errors. To fix the problem, do not add IF EXISTS when executing DROP TEMPORARY TABLE on the slave, and clear the ER_BAD_TABLE_ERROR error after execution if the query does not expect any errors.
* | Auto-merge.Ramil Kalimullin2009-12-263-0/+39
|\ \
| * | Fix for bug#49570: Assertion failed: !(order->used & map) Ramil Kalimullin2009-12-223-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on re-execution of prepared statement Problem: some (see eq_ref_table()) ORDER BY/GROUP BY optimization is called before each PS execution. However, we don't properly initialize its stucture every time before the call. Fix: properly initialize the sturture used.
* | | BUG#48738: post-push fix. Multi-platform test improvements, mainly Luis Soares2009-12-242-80/+29
| | | | | | | | | | | | | | | to make the test run gracefully on windows. There was also a syntax error in windows part of the test.
* | | Bug #48866: mysql.test fails under Fedora 12Georgi Kodinov2009-12-163-12/+5
| | | | | | | | | | | | | | | | | | | | | | | | strmov() is not guaranteed to work correctly on overlapping source and destination buffers. On some OSes it may work, but Fedora 12 has a stpcpy() that's not working correctly on overlapping buffers. Fixed to use the overlap-safe version of strmov instead. Re-vitalized the overlap-safe version of strmov.
* | | Bug#49898 - Fix for bug#37408 introduces a linker errorSatya B2009-12-241-1/+0
| | | | | | | | | | | | | | | the declaration of THR_LOCK_myisam_mmap in mi_static is redundant as it accessible via the extern declaration in include/myisam.h
* | | BUG#48738: merge local branch into mysql-5.0-bugteam latest.Luis Soares2009-12-243-4/+226
|\ \ \
| * | | BUG#48738: Backport patch for Bug 34582 to 5.0 codebase.Luis Soares2009-11-133-4/+226
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From BUG 34582 commit message: Issuing 'FLUSH LOGS' does not close and reopen indexfile. Instead a SEEK_SET is performed. This patch makes index file to be closed and reopened whenever a rotation happens (FLUSH LOGS is issued or binary log exceeds maximum configured size).
* | | | Bug#47371 reference by same column nameSergey Glukhov2009-12-225-1/+75
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | At the end of execution top level join execution we cleanup this join with true argument. It leads to underlying join cleanup(subquery) with true argument too and to tmp_table_param->field array cleanup which is required later. The problem is that Item_func_set_user_var does not set result_filed which leads to unnecessary repeated excution of subquery on final stage. The fix is to set result_field for Item_func_set_user_var.
* | | Bug#8693, Bug#45521.Serge Kozlov2009-12-211-2/+0
| | |
* | | Bug#48983: Bad strmake calls (length one too long)Davi Arnaut2009-12-1712-19/+22
| | | | | | | | | | | | | | | | | | | | | | | | The problem is a somewhat common misusage of the strmake function. The strmake(dst, src, len) function writes at most /len/ bytes to the string pointed to by src, not including the trailing null byte. Hence, if /len/ is the exact length of the destination buffer, a one byte buffer overflow can occur if the length of the source string is equal to or greater than /len/.
* | | Bug #49740 rpl.rpl_temporary fails in PB2 in mysql-trunk-mergeAndrei Elkin2009-12-172-0/+4
| | | | | | | | | | | | | | | | | | | | | The test allowed random coincidence of connection ids for two concurrent sessions performing CREATE/DROP temp tables. Fixed with correcting the test. The sessions connection ids are not changed from their defaults anymore.
* | | Fix for Bug#37408 - Compressed MyISAM files should not require/use mmap()Satya B2009-12-1710-5/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When compressed myisam files are opened, they are always memory mapped sometimes causing memory swapping problems. When we mmap the myisam compressed tables of size greater than the memory available, the kswapd0 process utilization is very high consuming 30-40% of the cpu. This happens only with linux kernels older than 2.6.9 With newer linux kernels, we don't have this problem of high cpu consumption and this option may not be required. The option 'myisam_mmap_size' is added to limit the amount of memory used for memory mapping of myisam files. This option is not dynamic. The default value on 32 bit system is 4294967295 bytes and on 64 bit system it is 18446744073709547520 bytes. Note: Testcase only tests the option variable. The actual bug has be to tested manually.
* | | Fix for bug#49465: valgrind warnings and incorrect live checksum...Ramil Kalimullin2009-12-173-1/+39
| | | | | | | | | | | | | | | | | | | | | | | | Problem: inserting a record we don't set unused null bits in the record buffer if no default field values used. That may lead to wrong live checksum calculation. Fix: set unused null bits in the record buffer in such cases.
* | | Bug #48709: Assertion failed in sql_select.cc:11782:Georgi Kodinov2009-12-153-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | int join_read_key(JOIN_TAB*) The eq_ref access method TABLE_REF (accessed through JOIN_TAB) to save state and to track if this is the first row it finds or not. This state was not reset on subquery re-execution causing an assert. Fixed by resetting the state before the subquery re-execution.
* | | merging 5.0-bt to local branch with bug@47210Andrei Elkin2009-12-1497-674/+2626
|\ \ \
| * | | This is a patch for Bug#48500lars-erik.bjork@sun.com2009-12-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5.0 buffer overflow for ER_UPDATE_INFO, or truncated info message in 5.1 5.0.86 has a buffer overflow/crash, and 5.1.40 has a truncated message. errmsg.txt contains this: ER_UPDATE_INFO rum "Linii identificate (matched): %ld Schimbate: %ld Atentionari (warnings): %ld" When that is sprintf'd into a buffer of STRING_BUFFER_USUAL_SIZE size, a buffer overflow can happen. The solution to this is to use MYSQL_ERRMSG_SIZE for the buffer size, instead of STRING_BUFFER_USUAL_SIZE. This will allow longer strings. To avoid potential crashes, we will also use my_snprintf instead of sprintf.
| * | | Define _WIN32_WINNT to the minimum supported Windows version, 0x0500 i.eKent Boortz2009-12-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Windows 2000. Visual Studio 2003 and 2005 require _WIN32_WINNT >= 0x0500 (Win2000) for TryEnterCriticalSection.
| * | | mergeGeorgi Kodinov2009-12-111-1/+2
| |\ \ \
| | * | | Bug #48742 Replication: incorrect help text for --init-slave2009-12-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The help text for --init-slave=name: "Command(s) that are executed when a slave connects to this master". This text indicate that the --init-slave option is set on a master server, and the master server passes the option's argument to slave which connects to it. This is wrong. Actually the --init-slave option just can be set on a slave server, and then the slave server executes the argument each time the SQL thread starts. Correct the help text for --init-slave option as following: "Command(s) that are executed by a slave server each time the SQL thread starts."
| * | | | Bug #49250 : spatial btree index corruption and crashGeorgi Kodinov2009-12-105-41/+124
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | SPATIAL and FULLTEXT indexes don't support algorithm selection. Disabled by creating a special grammar rule for these in the parser. Added some encasulation of duplicate parser code.
| * | | Bug #42760: Select doesn't return desired results when we have null valuesGeorgi Kodinov2009-12-073-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Part 2 : There was a special optimization on the ref access method for ORDER BY ... DESC that was set without actually looking on the type of the selected index for ORDER BY. Fixed the SELECT ... ORDER BY .. DESC (it uses a different code path compared to the ASC that has been fixed with the previous fix).
| * | | Auto-merge.Ramil Kalimullin2009-12-105-7/+178
| |\ \ \
| | * | | Fix for bug#49199: Optimizer handles incorrectly: Ramil Kalimullin2009-12-045-7/+178
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | field='const1' AND field='const2' in some cases Building multiple equality predicates containing a constant which is compared as a datetime (with a field) we should take this fact into account and compare the constant with another possible constatns as datetimes as well. E.g. for the SELECT ... WHERE a='2001-01-01' AND a='2001-01-01 00:00:00' we should compare '2001-01-01' with '2001-01-01 00:00:00' as datetimes but not as strings.
| * | | | Post fix for bug#45520He Zhenxing2009-12-103-1/+7
| | | | |
| * | | | removed rpl_killed_ddl from disabled listHe Zhenxing2009-12-091-1/+0
| | | | |
| * | | | BUG#45520 rpl_killed_ddl fails sporadically in pb2He Zhenxing2009-12-093-18/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are three issues that caused rpl_killed_ddl fails sporadically in pb2: 1) thd->clear_error() was not called before create Query event if operation is executed successfully. 2) DATABASE d2 might do exist because the statement to CREATE or ALTER it was killed 3) because of bug 43353, kill the query that do DROP FUNCTION or DROP PROCEDURE can result in SP not found This patch fixed all above issues by: 1) Called thd->clear_error() if the operation succeeded. 2) Add IF EXISTS to the DROP DATABASE d2 statement 3) Temporarily disabled testing DROP FUNCTION/PROCEDURE IF EXISTS.
| * | | | Bug #47391 no stack trace printed to error log on Staale Smedseng2009-12-062-0/+22
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | solaris after a crash This patch adds a Solaris-specific version of print_stacktrace() which uses printstack(2), available on all Solaris versions since Solaris 9. (While Solaris 11 adds support for the glibc functions backtrace_*() as of PSARC/2007/162, printstack() is used for consistency over all Solaris versions.) The symbol names are mangled, so use of c++filt may be required as described in the MySQL documentation.
| * | | Auto-merged.Evgeny Potemkin2009-12-032-0/+4
| |\ \ \
| | * | | Bug#48508: Crash on prepared statement re-execution.Evgeny Potemkin2009-12-032-0/+4
| | | | | | | | | | | | | | | Test case cleanup.
| * | | | Auto-merged fix for the bug#48508.Evgeny Potemkin2009-12-025-2/+49
| |\ \ \ \ | | |/ / / | | | | / | | |_|/ | |/| |
| | * | Bug#48508: Crash on prepared statement re-execution.Evgeny Potemkin2009-12-015-2/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Actually there is two different bugs. The first one caused crash on queries with WHERE condition over views containing WHERE condition. A wrong check for prepared statement phase led to items for view fields being allocated in the execution memory and freed at the end of execution. Thus the optimized WHERE condition refers to unallocated memory on the second execution and server crashed. The second one caused by the Item_cond::compile function not saving changes it made to the item tree. Thus on the next execution changes weren't reverted and server crashed on dereferencing of unallocated space. The new helper function called is_stmt_prepare_or_first_stmt_execute is added to the Query_arena class. The find_field_in_view function now uses is_stmt_prepare_or_first_stmt_execute() to check whether newly created view items should be freed at the end of the query execution. The Item_cond::compile function now saves changes it makes to item tree.
| * | | Bug #38883 (reopened): thd_security_context is not thread safe, crashes?Gleb Shchepa2009-12-014-70/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The bug 38816 changed the lock that protects THD::query from LOCK_thread_count to LOCK_thd_data, but didn't update the associated InnoDB functions. 1. The innobase_mysql_prepare_print_arbitrary_thd and the innobase_mysql_end_print_arbitrary_thd InnoDB functions have been removed, since now we have a per-thread mutex: now we don't need to wrap several inter-thread access tries to THD::query with a single global LOCK_thread_count lock, so we can simplify the code. 2. The innobase_mysql_print_thd function has been modified to lock LOCK_thd_data in direct way.
| * | | Addendum to bug #48872: disable output in the test case because errors are Georgi Kodinov2009-11-272-5/+2
| | | | | | | | | | | | dependent on the case mode
| * | | added the missing remove of the temp fileGeorgi Kodinov2009-11-271-0/+1
| | | |
| * | | Addendum to Bug #27884: fixed test incompatibility on windows.Georgi Kodinov2009-11-271-1/+4
| | | |
| * | | Bug #48872 : Privileges for stored functions ignored if function nameGeorgi Kodinov2009-11-273-5/+126
| | | | | | | | | | | | | | | | | | | | | | | | is mixed case Transcode the procedure name to lowercase when searching for it in the hash. This is the missing part of the fix for bug #41049.