summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* file-based table discovery for discovering storage enginesSergei Golubchik2013-04-0912-182/+483
| | | | | | also: * move few tests from archive/archive.test to archive/discover.test * fix (unintentionally) bug#34104, updated result files
* find_files(): don't sort files in my_dir(), sort table namesSergei Golubchik2013-04-0711-64/+50
| | | | | | | | | after all engines have discovered their tables side effect: correct alphabetical sorting as in ORDER BY ... COLLATE utf8_bin, information_schema is no longer the first after find_files(), tables like #mysql50#zzz are sorted first (as per table name), not last (as per file name zzz).
* * use Dynamic_array<> instead of List<> for the list of found tables in ↵Sergei Golubchik2013-04-073-41/+41
| | | | | | sql_show.cc * make find_files static
* remove #if MYSQL_VERSION_IDSergei Golubchik2013-04-072-157/+50
| | | | | there is no "upstream" OQGraph version that needs to stay compatible with different MariaDB releases.
* * move bas_ext from the handler to the handlertonSergei Golubchik2013-04-0733-262/+86
| | | | * provide a default bas_ext value of the empty list
* remove handlerton::find_files (new implementation is coming),Sergei Golubchik2013-04-074-127/+7
| | | | | and handlerton::table_exists_in_engine (new implementation is coming), and handlerton::license (redundant)
* small cleanup - remove prehistoric DB_TYPE_xxx valuesSergei Golubchik2013-04-072-26/+17
|
* remove long time obsolete xyz_ci() copies of xyz() macrosSergei Golubchik2013-04-072-9/+5
|
* simpler fix for mysql bug #56085, no need to write an error interceptor,Sergei Golubchik2013-04-072-19/+9
| | | | when the function has a dedicated flag for this very use case.
* simplify test caseSergei Golubchik2013-04-073-14/+6
|
* s/st_ha_create_information/HA_CREATE_INFO/Sergei Golubchik2013-04-077-12/+3
|
* typo fixedSergei Golubchik2013-04-072-5/+5
|
* bugfix: MYSQL_THDVAR_STR plugins with PLUGIN_VAR_MEMALLOC didn't workSergei Golubchik2013-04-071-6/+12
| | | | (PLUGIN_VAR_MEMALLOC ix 0x8000 and cannot be saved in a char as such)
* macro do {} while(0) safetySergei Golubchik2013-04-071-1/+1
|
* my_dir() cleanupSergei Golubchik2013-04-0714-210/+125
| | | | | | | | | | | | * replace pointer acrobatics with a struct * make sorting explicit: MY_DONT_SORT -> MY_WANT_SORT (if you want something to be done - say it. fixes all places where my_dir() was used without thinking) * typo s/number_off_files/number_of_files/ * directory_file_name() doesn't need to be extern * remove #ifdef __BORLANDC__ * ignore '.' and '..' entries
* clarify CREATE grammarSergei Golubchik2013-04-071-43/+21
|
* mtr bug: files outside of both the suite dir and the overlay dir, wereSergei Golubchik2013-04-071-0/+2
| | | | | | treated as coming from the overlay. (example: archive suite, test_sql_discovery overlay, mysql-test/include/have_archive.inc)
* remove the service for installing the closed-source mysql thread pool pluginSergei Golubchik2013-04-0713-175/+35
|
* consistency in declaring service symbolsSergei Golubchik2013-04-075-5/+5
|
* cleanupSergei Golubchik2013-04-071-41/+25
|
* cleanupSergei Golubchik2013-04-071-3/+4
|
* split THD::make_lex_string() in twoSergei Golubchik2013-04-075-67/+48
|
* small cleanupSergei Golubchik2013-04-076-33/+15
|
* remove ULL() and LL(), because they're totally unnecessarySergei Golubchik2013-04-0748-256/+248
| | | | and sometimes harmful (used with expressions)
* Fix buildbot failure in show_explain.test:Sergey Petrunya2013-04-022-4/+4
| | | | | | | | mysqltest: At line 477: query 'show explain for $thr2' failed: 1933: Target is not running an EXPLAINable command After the fix for MDEV-4144, subquery with WHERE pk= (select ...) became a degenerate, constant SELECT. It is not executed in normal way anymore, so it is not possible to catch it in-execution.
* Merge 5.5->10.0-baseIgor Babaev2013-03-3123-102/+793
|\
| * Fix for MDEV-4144unknown2013-03-2911-32/+70
| | | | | | | | | | | | | | | | | | | | | | | | Analysis: The reason for the inefficent plan was that Item_subselect::is_expensive() didn't detect the special case when a subquery was optimized, but had no join plan because it either has no table, or its tables have been optimized away, or the optimizer detected that the result set is empty. Solution: Identify the special cases above in the Item_subselect::is_expensive(), and consider such degenerate subqueries inexpensive.
| * MDEV-4243 : remove several clang warnings.Vladislav Vaintroub2013-03-293-59/+62
| |
| * Merge 5.3->5.5.Igor Babaev2013-03-283-4/+498
| |\
| | * Merge.Igor Babaev2013-03-273-4/+498
| | |\
| | | * Fixed bug mdev-4318.Igor Babaev2013-03-223-4/+498
| | | | | | | | | | | | | | | | | | | | | | | | In some cases, when using views the optimizer incorrectly determined possible join orders for queries with nested outer and inner joins. This could lead to invalid execution plans for such queries.
| * | | MergeIgor Babaev2013-03-275-2/+158
| |\ \ \
| | * | | Fixed bug mdev-4311 (bug #68749).Igor Babaev2013-03-275-2/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This bug was introduced by the patch for WL#3220. If the memory allocated for the tree to store unique elements to be counted is not big enough to include all of them then an external file is used to store the elements. The unique elements are guaranteed not to be nulls. So, when reading them from the file we don't have to care about the null flags of the read values. However, we should remove the flag at the very beginning of the process. If we don't do it and if the last value written into the record buffer for the field whose distinct values needs to be counted happens to be null, then all values read from the file are considered to be nulls and are not counted in. The fix does not remove a possible null flag for the read values. Rather it just counts the values in the same way it was done before WL #3220.
* | | | | 5.5 mergeSergei Golubchik2013-03-27627-18008/+17002
|\ \ \ \ \ | |/ / / /
| * | | | 5.3 mergeSergei Golubchik2013-03-2738-293/+877
| |\ \ \ \ | | | |/ / | | |/| |
| | * | | 5.2 mergeSergei Golubchik2013-03-2612-125/+171
| | |\ \ \
| | | * \ \ 5.1 mergeSergei Golubchik2013-03-2612-124/+172
| | | |\ \ \
| | | | * | | add 'plugins' suite - empty, but the lineSergei Golubchik2013-03-200-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ./mtr --suite=main,plugins will work on all branches.
| | | | * | | MDEV-4295 Server crashes in get_point on a query with Area, AsBinary, ↵Alexey Botchkov2013-03-193-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MultiPoint. Need to check if the number of points is 0 for the polygon.
| | | | * | | MDEV-4296 Assertion `n_linear_rings > 0' fails in Gis_polygon::centroid_xy.Alexey Botchkov2013-03-193-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Forgotten DBUG_ASSERT should be replaced with the 'return error'.
| | | | * | | MDEV-4269 fix.unknown2013-03-183-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Item_default_value inherited form Item_field so should create temporary table field similary.
| | | | * | | MDEV-4252 geometry query crashes server.Alexey Botchkov2013-03-184-21/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Additional fixes for possible overflows in length-related calculations in 'spatial' implementations. Checks added to the ::get_data_size() methods. max_n_points decreased to occupy less 2G size. An object of that size is practically inoperable anyway.
| | | | * | | MDEV-4289 Assertion `0' fails in make_sortkey with GROUP_CONCAT, MAKE_SET, ↵Sergei Golubchik2013-03-185-85/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GROUP BY Item_func_make_set wasn't taking into account the first argument when calculating maybe_null. sql/item_strfunc.cc: rewrite Item_func_make_set, removing separate storage of the first argument sql/item_strfunc.h: rewrite Item_func_make_set, removing separate storage of the first argument
| | | | * | | MDEV-4252 geometry query crashes server.Alexey Botchkov2013-03-104-13/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The bug was found by Alyssa Milburn. If the number of points of a geometry feature read from binary representation is greater than 0x10000000, then the (uint32) (num_points * 16) will cut the higher byte, which leads to various errors. Fixed by additional check if (num_points > max_n_points).
| | * | | | | GEOMETRYCOLLECTION EMPTY handling fixed.Alexey Botchkov2013-03-263-11/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The get_mbr() method shouldn't return the error, rather an invalid MBR in this case.
| | * | | | | MDEV-4292 fix.unknown2013-03-263-11/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed printing column_get finction.
| | * | | | | MDEV-4310 geometry function equals hangs forever.Alexey Botchkov2013-03-223-25/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Geometry::get_mbr() function can return an error on a bad data. We have to check for that and act respectively.
| | * | | | | MergeSergey Petrunya2013-03-213-0/+179
| | |\ \ \ \ \ | | | |_|_|_|/ | | |/| | | |
| | | * | | | MDEV-4277: Crash inside mi_killed_in_mariadb() with myisammrgSergey Petrunya2013-03-213-0/+179
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Set MI_INFO::external_ref for MyISAM tables that are parts of myisamMRG table.
| | * | | | | MDEV-4293 Valgrind warnings (Conditional jump or move depends on ↵Sergei Golubchik2013-03-203-12/+28
| | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | uninitialised value) in remove_eq_conds on time functions with NULL argument val_int() is expected to return 0 for NULL's