Commit graph

67627 commits

Author SHA1 Message Date
Igor Babaev
e7a7e2a036 Fixed LP bug #878199.
The function JOIN::drop_unused_derived_keys could erroneously set
the value of REF::key to 0 for a joined materialized view/derived table
in the case when no REF access to the table was used by the query
execution plan. This could cause a crash of the server.
2011-10-20 04:59:20 -07:00
Igor Babaev
0e4d88f1b2 Merge. 2011-10-19 23:35:11 -07:00
Igor Babaev
945f12cf8f Fixed LP bug #877316.
This bug happened due to incompleteness of the fix for bug 872735:
the occurrences of the fields in the conditions of correlated
subqueries were not taken into account when recalculating
covering keys bit maps.
2011-10-19 23:28:37 -07:00
Vladislav Vaintroub
29c3debd30 merge 5.2 2011-10-19 21:01:42 +02:00
Vladislav Vaintroub
aa327cdd48 merge from 5.1 2011-10-19 20:53:16 +02:00
Vladislav Vaintroub
78eb1d48c9 Fix endless loop in my_gethwaddr() 2011-10-19 20:51:01 +02:00
unknown
9f79d2f9e1 Fix of building on Mac OS. 2011-10-18 22:50:17 +03:00
unknown
4720b6f68b merge 2011-10-18 14:04:10 +03:00
unknown
255c04aed8 Compiler warning about assigned but not used variables fixed. 2011-10-18 13:44:12 +03:00
Igor Babaev
cc80671202 Fixed a compiler warning. 2011-10-17 03:42:56 -07:00
Igor Babaev
bb916d0f09 Merge. 2011-10-17 01:20:16 -07:00
Igor Babaev
f5955f87c6 Fixed LP bug #874006.
This bug manifested itself with queries containing non-correlated
IN subqueries over materialized views/derived tables.  
The bug happened because the code of the function generate_derived_keys did
not take into account that the function could be called twice when the
optimizer was deciding whether in-exist transformation should be applied.
2011-10-16 13:23:57 -07:00
Michael Widenius
d5959780aa Remove extra MariaDB- from binary tar.gz file name
Print server version name to .err file on crash 

scripts/make_binary_distribution.sh:
  Remove extra MariaDB- from binary tar.gz file name
sql/mysqld.cc:
  Print server version name to .err file on crash (to ensure people paste also that when they report a crash)
2011-10-16 22:46:11 +03:00
Michael Widenius
e3e60a4102 Fixed wrong info message for mysqld --general-log
Fixed wrong parameter type for --general-log. Now one can enable it with --general-log= 1 | true | on
Fixed that bool parameters can also take 'on' and 'off' as parameters. This is in line with the values assigned to them in mysqld.


mysys/my_getopt.c:
  Fixed that bool parameters can also take 'on' and 'off' as parameters.
sql/mysqld.cc:
  Fixed wrong info message for mysqld --general-log
  Fixed wrong parameter type for --general-log. Now one can enable it with --general-log= 1 | true | on
2011-10-16 21:55:53 +03:00
Vladislav Vaintroub
aed67d2582 In crash handler, output session value of the optimizer switch. 2011-10-14 17:51:16 +02:00
Igor Babaev
5e4a381cc5 Merge. 2011-10-14 03:56:41 -07:00
Sergei Golubchik
60e1ef85e5 update pbxt test results 2011-10-14 12:41:20 +02:00
Igor Babaev
54e296d4a7 Merge. 2011-10-14 00:11:50 -07:00
Igor Babaev
9e6f484788 Fixed LP bug #872735.
This bug happened because the maps of covering keys for mergeable derived
tables/views was not recalculated after the derived tables/vies had been
merged into the main query.
2011-10-13 22:39:00 -07:00
Sergei Golubchik
9f6e24a05a lp:817966 int_column IN (string_constant)
restore the status quo from before the microsecond patch
2011-10-13 13:44:50 +02:00
Sergei Golubchik
76e9131fbe typo. 2011-10-13 11:23:59 +02:00
Sergei Golubchik
d588488855 silence the "uninitialized" warning 2011-10-13 11:20:33 +02:00
Sergey Petrunya
94bf62b65b Remove garbage comment 2011-10-13 00:15:51 +04:00
Sergey Petrunya
88d8fccfca BUG#872702: Crash in add_ref_to_table_cond() when grouping by a PK
- Testcase
2011-10-12 21:40:56 +04:00
Sergey Petrunya
ae79dbdb95 Code cleanup: move variable into branch that uses it 2011-10-12 21:38:40 +04:00
Sergei Golubchik
4449d8e380 fix a compilation failure for perl Net::HandlerSocket module 2011-10-12 14:01:01 +02:00
Vladislav Vaintroub
d418175f15 merge 2011-10-12 12:45:35 +02:00
Vladislav Vaintroub
9d0b9ffa50 merge 2011-10-12 12:30:55 +02:00
Sergey Petrunya
42eeb557a6 Fix compile error: ‘cond_copy’ may be used uninitialized in this function. 2011-10-12 14:23:42 +04:00
Vladislav Vaintroub
f1b2ecc437 Add option to enable feedback plugin to the MSI installer. 2011-10-12 12:07:14 +02:00
Sergey Petrunya
2160a25adc BUG#869001: Wrong result with semijoin + materialization + firstmatch + multipart key
- Make advance_sj_state() not to attempt building duplicate removal strategies
  when we're doing optimization of an SJM-nest.
2011-10-12 13:19:37 +04:00
Sergey Petrunya
74497ff265 Update subselect_sj{,2}_mat.result with changes that were lost when
they were deleted and re-created.
2011-10-12 02:04:03 +04:00
unknown
5b165010af Restore files accidentally deleted in previous merge. 2011-10-11 23:38:26 +02:00
Sergey Petrunya
726fe69644 Merge: fix subselect_sj2*.test: add missing DROP TABLE statement 2011-10-11 23:52:23 +04:00
Sergey Petrunya
44f4cf6f40 Fix testcases from the previous push: add missing DROP TABLE statement 2011-10-11 23:48:50 +04:00
Sergei Golubchik
5cb67bbd77 when freeing a possibly NULL pointer under safemalloc - use MY_ALLOW_ZERO_PTR 2011-10-11 21:43:43 +02:00
Vladislav Vaintroub
7f975df6b8 merge 2011-10-11 20:20:19 +02:00
Vladislav Vaintroub
ae7207dad7 merge 2011-10-11 20:18:46 +02:00
Vladislav Vaintroub
d94deb4ac2 merge 2011-10-11 20:17:44 +02:00
Vladislav Vaintroub
08fe6cba06 merge 2011-10-11 20:16:11 +02:00
Vladislav Vaintroub
ab5c1e433e remove unconditional SAFEMALLOC/SAFEMUTEX from debug flags 2011-10-11 20:13:57 +02:00
Sergey Petrunya
8392fa8391 Merge fix for BUG#869012 2011-10-11 21:57:57 +04:00
Sergey Petrunya
039da95e3d BUG#869012: Wrong result with semijoin + materialization + AND in WHERE
- in make_join_select(), use the correct condition to check whether the current table is a SJM nest (the previous 
  condition used to be correct before, but then sj-materialization temp table creation was moved to happen before
  make_join_select was called)
2011-10-11 21:34:00 +04:00
Sergei Golubchik
ae63300801 merge 2011-10-11 12:55:42 +02:00
Igor Babaev
8feff690b6 Fixed LP bug #870046.
This bug is a consequence of the fix in the function add_ref_to_table_cond
for LP bug 826935 that turned out to be not quite correct: it tried to AND
the same generated condition with two different other conditions.
This patch creates a copy of the generated condition if the condition needs
to be ANDed with two different items.
2011-10-11 02:36:08 -07:00
unknown
daf52954a8 Merge 2011-10-10 23:34:32 +03:00
Sergei Golubchik
3e8731dee0 merge 2011-10-10 19:34:37 +02:00
Sergei Golubchik
85ac4da3a8 add a missing definition 2011-10-10 17:59:26 +02:00
Sergei Golubchik
298fc11b82 remove unnecessary define 2011-10-10 15:38:11 +02:00
Sergei Golubchik
d94ad2ad40 fix feedback plugin for 5.2 2011-10-08 19:00:00 +02:00