- 28 Mar, 2013 2 commits
-
-
Igor Babaev authored
-
Igor Babaev authored
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.
-
- 27 Mar, 2013 1 commit
-
-
Sergei Golubchik authored
-
- 26 Mar, 2013 6 commits
-
-
Sergei Golubchik authored
Extend plugin auth api to support up to 512 bytes in the user names. Use the API versioning to support old auth plugins too!
-
Sergei Golubchik authored
-
Alexey Botchkov authored
The get_mbr() method shouldn't return the error, rather an invalid MBR in this case.
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
unknown authored
Fixed printing column_get finction.
-
- 25 Mar, 2013 1 commit
-
-
Sergei Golubchik authored
-
- 22 Mar, 2013 1 commit
-
-
Alexey Botchkov authored
The Geometry::get_mbr() function can return an error on a bad data. We have to check for that and act respectively.
-
- 21 Mar, 2013 2 commits
-
-
Sergey Petrunya authored
-
Sergey Petrunya authored
- Set MI_INFO::external_ref for MyISAM tables that are parts of myisamMRG table.
-
- 20 Mar, 2013 3 commits
-
-
Sergei Golubchik authored
./mtr --suite=main,plugins will work on all branches.
-
Sergei Golubchik authored
-
Sergei Golubchik authored
MDEV-4293 Valgrind warnings (Conditional jump or move depends on uninitialised value) in remove_eq_conds on time functions with NULL argument val_int() is expected to return 0 for NULL's
-
- 19 Mar, 2013 1 commit
-
-
Sergei Golubchik authored
(in INFORMATION_SCHEMA).
-
- 26 Mar, 2013 2 commits
-
-
Vladislav Vaintroub authored
-
Vladislav Vaintroub authored
The reason is the limitation of ReadConsole() API, it returns error if handle to redirected input is used. The fix is to use a handle returned by CreateFile("CONIN$",...), rather than GetStdHandle(STD_HANDLE_INPUT) to get the true console handle.
-
- 25 Mar, 2013 1 commit
-
-
Michael Widenius authored
The output of mysqlbinlog (with "-v --base64-output=DECODE-ROWS" flags) can not always be read or parsed correctly when string columns contain single-quotes or backslash characters. The fix for this bug is to escape single-quote and backslash characters on output, so that the result is both more readable and more easily parse-able. Note that this is just for comments, so it doesn't affect the replication. sql/log_event.cc: Escape \ and ' properly for mysqlbin user comments.
-
- 19 Mar, 2013 2 commits
-
-
Alexey Botchkov authored
Need to check if the number of points is 0 for the polygon.
-
Alexey Botchkov authored
Forgotten DBUG_ASSERT should be replaced with the 'return error'.
-
- 18 Mar, 2013 4 commits
-
-
unknown authored
Item_default_value inherited form Item_field so should create temporary table field similary.
-
Alexey Botchkov authored
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.
-
Sergei Golubchik authored
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
-
Sergei Golubchik authored
with decimals=NOT_FIXED_DEC it is possible to have 'decimals' larger than 'max_length', it's not an error for temporal functions. But when Item_func_numhybrid converts the value to DECIMAL_RESULT, it must limit 'decimals' to be a valid scale of a decimal number.
-
- 17 Mar, 2013 3 commits
-
-
Sergei Golubchik authored
AVG() returns a double, its max_length is reasonably limited by a double number length, even if the argument is many Kbytes long.
-
Sergei Golubchik authored
Flip the switch and create Item_cache based on the argument's cmp_type, not argument's result_type(). Fix subselect_engine to calculate cmp_type correctly sql/item_subselect.h: mdev:4284
-
Sergei Golubchik authored
MDEV-4281 Assertion `maybe_null && item->null_value' fails in make_sortkey on CASE with different return types, GROUP_CONCAT, GROUP BY Fix Item::get_date() to mark the item NULL when returning an error.
-
- 14 Mar, 2013 3 commits
-
-
unknown authored
Incorrect NULL value handling in Item_func_conv_charset fixed.
-
Michael Widenius authored
mysql-test/r/keywords.result: Test that option works as table/column/variable mysql-test/suite/funcs_1/r/storedproc.result: OPTION is now a valid identifier mysql-test/suite/funcs_1/t/storedproc.test: OPTION is now a valid identifier mysql-test/t/keywords.test: Test that option works as table/column/variable sql/sql_yacc.yy: OPTION is now a valid identifier
-
Elena Stepanova authored
Adding an include file which checks whether long names are supported
-
- 13 Mar, 2013 1 commit
-
-
Sergei Golubchik authored
get_datetime_value() should not double-cache its own Item_cache_temporal items, but it *should* cache other Item_cache items, such as Item_cache_str. sql/item.h: shortcut, to avoid going through the switch in Item::cmp_type() sql/item_cmpfunc.cc: even if the item is Item_cache_str - it still needs to be converted and cached. sql/item_timefunc.h: all descendants of Item_temporal_func always have cmp_type==TIME_RESULT. Even Item_date_add_interval, that might have field_type == MYSQL_TYPE_STRING.
-
- 11 Mar, 2013 1 commit
-
-
Sergei Golubchik authored
-
- 12 Mar, 2013 3 commits
-
-
Vladislav Vaintroub authored
-
Vladislav Vaintroub authored
MDEV-4267 : do not copy sql_yacc.cc and sql_yacc.h from unpacked source tarball into build directory, if usable bison is installed on the build machine. This is done in order to avoid possibly stale bison output files in the build directory.
-
Vladislav Vaintroub authored
The reason for the problem was negation of signed longlong value LONGLON G_MIN in Item_func_neg::int_op() - the result of this operation is not defined (in C/C++ standard). With this patch, LONGLONG_MIN is handled as special value, and negation is avoided.
-
- 10 Mar, 2013 1 commit
-
-
Alexey Botchkov authored
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).
-
- 08 Mar, 2013 1 commit
-
-
Igor Babaev authored
This is a bug in the legacy code. It did not manifest itself because it was masked by other bugs that were fixed by the patches for mdev-4172 and mdev-4177.
-
- 06 Mar, 2013 1 commit
-
-
Vladislav Vaintroub authored
-