summaryrefslogtreecommitdiff
path: root/sql/sql_join_cache.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge 10.2 into 10.3Marko Mäkelä2019-05-141-1/+1
|\
| * Merge branch '5.5' into 10.1Vicențiu Ciorbaru2019-05-111-1/+1
| |\
| | * Update FSF addressMichal Schorm2019-05-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit is based on the work of Michal Schorm, rebased on the earliest MariaDB version. Th command line used to generate this diff was: find ./ -type f \ -exec sed -i -e 's/Foundation, Inc., 59 Temple Place, Suite 330, Boston, /Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, /g' {} \; \ -exec sed -i -e 's/Foundation, Inc. 59 Temple Place.* Suite 330, Boston, /Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, /g' {} \; \ -exec sed -i -e 's/MA.*.....-1307.*USA/MA 02110-1335 USA/g' {} \; \ -exec sed -i -e 's/Foundation, Inc., 59 Temple/Foundation, Inc., 51 Franklin/g' {} \; \ -exec sed -i -e 's/Place, Suite 330, Boston, MA.*02111-1307.*USA/Street, Fifth Floor, Boston, MA 02110-1335 USA/g' {} \; \ -exec sed -i -e 's/MA.*.....-1307/MA 02110-1335/g' {} \;
* | | MDEV-15091 : Windows, 64bit: reenable and fix warning C4267 (conversion from ↵Vladislav Vaintroub2018-02-061-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'size_t' to 'type', possible loss of data) Handle string length as size_t, consistently (almost always:)) Change function prototypes to accept size_t, where in the past ulong or uint were used. change local/member variables to size_t when appropriate. This fix excludes rocksdb, spider,spider, sphinx and connect for now.
* | | Adding multi_range_read support to partitionsMonty2017-12-031-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Other things: - Cleanup of allocated bitmaps done in open(), which simplifies init_partition_bitmaps() - Add needed defines in ha_spider.cc to enable new spider code - Fixed some DBUG_PRINT() to be consistent with normal code - Removed end space - The changes in test cases partition_innodb, partition_range, partition_pruning etc are becasue partitions can now more exactly calculate the number of rows in a range. Contains spider patches: 014,015,023,033,035,037,040,042,044,045,049,050,051,053,059
* | | Handle failures from mallocMichael Widenius2017-11-171-3/+3
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most "new" failures fixed in the following files: - sql_select.cc - item.cc - item_func.cc - opt_subselect.cc Other things: - Allocate udf_handler strings in mem_root - Required changes in sql_string.h - Add mem_root as argument to some new [] calls - Mark udf_handler strings as thread specific - Removed some comment blocks with code
* | Correct FSF addressiangilfillan2017-03-101-1/+1
| |
* | MDEV-34 delete storage/ndb and sql/*ndb* (and collateral changes)Sergei Golubchik2014-10-111-1/+1
| | | | | | | | | | | | | | | | | | | | remove: * NDB from everywhere * IM from mtr-v1 * packaging/rpm-oel and packaging/rpm-uln * few unused spec files * plug.in file * .bzrignore
* | Merge bb-10.1-explain-analyze into 10.1Sergei Petrunia2014-06-251-4/+4
|\ \
| * | MDEV-406: ANALYZE $stmt: add support for BNL join bufferingSergei Petrunia2014-06-251-4/+4
| | |
* | | Fixed bug mdev-6071.Igor Babaev2014-06-101-6/+9
|/ / | | | | | | | | | | | | | | The method JOIN_CACHE::init may fail (return 1) if some conditions on the used join buffer is not satisfied. For example it fails if join_buffer_size is greater than join_buffer_space_limit. The conditions should be checked when running the EXPLAIN command for the query. That's why the method JOIN_CACHE::init has to be called for EXPLAIN commands as well.
* | Merge 10.0-base -> 10.0Sergey Petrunya2013-10-161-3/+4
|\ \
| * | MDEV-3798: EXPLAIN UPDATE/DELETESergey Petrunya2013-10-051-3/+3
| | | | | | | | | | | | | | | - Address review feedback: more renames
| * | MDEV-3798: EXPLAIN UPDATE/DELETESergey Petrunya2013-10-051-4/+4
| | | | | | | | | | | | - Address review feedback: rename nearly any name used by the new EXPLAIN code.
| * | [SHOW] EXPLAIN UPDATE/DELETE, code re-structuringSergey Petrunya2013-06-271-3/+4
| |/ | | | | | | | | | | | | - Let Query Plan Footprint store join buffer type in binary form, not string. - Same for LooseScan type.
* | Merge 10.0-serg -> 10.0Sergey Petrunya2013-08-071-2/+2
|\ \
| * | Temporary commit of 10.0-mergeMichael Widenius2013-03-261-2/+2
| |/
* | Better commentsSergey Petrunya2013-08-071-0/+1
|/
* 5.3 mergeSergei Golubchik2012-02-211-0/+2
|\
| * Counters for Index Condition Pushdown added (MDEV-130).unknown2012-02-161-0/+2
| |
* | fix the include guards and add missing gplv2 headersSergei Golubchik2012-02-171-0/+16
| |
* | Various fixes for Solaris compiler.Vladislav Vaintroub2012-02-031-1/+1
| | | | | | | | | | | | | | Also, restrict symbol visibility in statically built plugins, to minimize the chance for symbol name clashes with dynamic plugins.
* | merge with 5.3Sergei Golubchik2011-10-191-1/+1
|/ | | | | | | | | | | | | sql/sql_insert.cc: CREATE ... IF NOT EXISTS may do nothing, but it is still not a failure. don't forget to my_ok it. ****** CREATE ... IF NOT EXISTS may do nothing, but it is still not a failure. don't forget to my_ok it. sql/sql_table.cc: small cleanup ****** small cleanup
* Fixed LP bug #802860.Igor Babaev2011-06-281-0/+1
| | | | | | | | | | | | | | | | | | | This crashing bug could manifest itself at execution of join queries over materialized derived tables with IN subquery predicates in the where clause. If for such a query the optimizer chose to use duplicate weed-out with duplicates in a materialized derived table and chose to employ join cache the the execution could cause a crash of the server. It happened because the JOIN_CACHE::init method assumed that the value of TABLE::file::ref is set at the moment when the method was called for the employed join cache. It's true for regular tables, but it's not true for materialized derived tables that are filled now at the first access to them, i.e. after the JOIN_CACHE::init has done its job. To fix this problem for any ROWID field of materialized derived table the procedure that copies fields from record buffers into the employed join buffer first checks whether the value of TABLE::file::ref has been set for the table, and if it's not so the procedure sets this value.
* Merge MWL#90 into 5.3-mainSergey Petrunya2011-04-301-6/+7
|\
| * Merge MWL#90 with main 5.3 treeSergey Petrunya2011-04-021-6/+7
| |\
| | * MWL#90: Address review feedback part #1Sergey Petrunya2011-03-191-2/+0
| | |
| | * Merge 5.3 -> 5.3-subqueries-mwl90Sergey Petrunya2011-03-011-15/+15
| | |\
| | * | Code cleanup (1)Sergey Petrunya2011-02-191-5/+0
| | | |
| | * | MWL#90: Merge (4)Sergey Petrunya2011-02-151-2/+10
| | |\ \
| | | * | MWL#90: Subqueries: Inside-out execution for materialized non-sj subqueriesSergey Petrunya2011-02-151-2/+10
| | | | | | | | | | | | | | | | | | | | - Merge with 5.3 (3)
* | | | | Make EXPLAIN better at displaying MRR/BKA:Sergey Petrunya2011-04-021-1/+4
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - "Using MRR" is no longer shown with range access. - Instead, both range and BKA accesses will show one of the following: = "Rowid-ordered scan" = "Key-ordered scan" = "Key-ordered Rowid-ordered scan" depending on whether DS-MRR implementation will do scan keys in order, rowids in order, or both. - The patch also introduces a way for other storage engines/MRR implementations to pass information to EXPLAIN output about the properties of employed MRR scans.
* | | | MRR interface: change range_info's type from char* to range_id_t typedef. ↵Sergey Petrunya2011-03-041-2/+2
| |_|/ |/| | | | | | | | | | | | | | | | | The goals are: - cleaner code - ability to change from using pointers to offsets at some point
* | | Fixed high-impact Windows 64bit warnings (at least 4000 of them)Vladislav Vaintroub2011-02-191-3/+3
| | |
* | | Fix numerous warnings introduced in the last pushes on WindowsVladislav Vaintroub2011-02-181-12/+12
|/ /
* | Introduced optimizer switch flag 'optimize_join_buffer_size'.Igor Babaev2011-02-041-1/+1
|/ | | | | | | | | | When this flag is 'off' the size of the used join buffer is taken directly from the system variable 'join_buffer_size'. When this flag is 'on' then the size of the buffer depends on the estimated number of rows in the partial join whose records are to be stored in the buffer. By default this flag is set 'on'.
* MergeIgor Babaev2010-12-241-2/+32
|\
| * Fixed LP bug #670380.Igor Babaev2010-12-221-2/+32
| | | | | | | | | | Lifted the limitation that hash join could not be used over varchar fields with non-binary collation.
* | Merge maria-5.3-mwl128 -> maria-5.2-mwl128-dsmrr-cpkSergey Petrunya2010-11-291-0/+1
|/
* Got the declarations related to the class JOIN_CACHE, its derivatives andIgor Babaev2010-11-191-0/+1376
companions out of sql_select.h into a separate file sql_join_cache.h.