- 09 Nov, 2015 2 commits
-
-
Sergei Petrunia authored
Patch from Daniel Black: - Change the charset of mysql.column_stats.{min_value, max_value} from utf8_bin varchar to varbinary - Adjust the code that saves/reads the data accordingly. - Also provide upgrade statement in mysql_system_tables_fix.sql
-
Vladislav Vaintroub authored
pre/CMakeLists.txt defines CMAKE_DEBUG_POSTFIX which causes a different library name on Windows debug build (pcred.lib rather than pre.lib) However MERGE_LIBRARIES macro that is used to create static embedded library (out of other static libraries), can not handle per-configuration library names. Thus the build fails with "pre.lib not found" Fix is to remove unnecessary CMAKE_DEBUG_POSTFIX
-
- 06 Nov, 2015 2 commits
-
-
Vladislav Vaintroub authored
Fix build failures caused by new C runtime library - isnan, snprintf, struct timespec are now defined, attempt to redefine them leads - P_tmpdir, tzname are no more defined - lfind() and lsearch() in lf_hash.c had to be renamed, declaration conflicts with some C runtime functions with the same name declared in a header included by stdlib.h Also fix couple of annoying warnings : - remove #define NOMINMAX from config.h to avoid "redefined" compiler warnings(NOMINMAX is already in compile flags) - disable incremental linker in Debug as well (feature not used much and compiler crashes often) Also simplify package building with Wix, require Wix 3.9 or later (VS2015 is not compatible with old Wix 3.5/3.6)
-
Alexander Barkov authored
When compiled with "-Wl,-Bsymbolic-functions" flags (e.g. when building a .deb package on Ubuntu) with TokuDB and jemalloc, mysqld crashed in toku_get_processor_frequency_cpuinfo() when free()-ing a buffer returned by getline(). getline() uses libc malloc() internally, while free() is aliased to jemalloc's free() in this configuration. Fixing not to use getline(). Using a static buffer instead.
-
- 05 Nov, 2015 2 commits
-
-
Oleksandr Byelkin authored
Make unique table check after setup_fields of update because unique table can materialize table and we do not need field resolving after materialization.
-
Vladislav Vaintroub authored
Replaced my_connect() with cross-plattform, timeout aware vio_socket_connect() function
-
- 03 Nov, 2015 1 commit
-
-
Vladislav Vaintroub authored
The regression is caused by change bind-address server parameter in MDEV-8083, so now server listens on IPv4 only by default. The problem however is that on Windows, connection to server on localhost appears to be much faster, if server listens on IPv6/dual stack. mysql_real_connect() would try to connect to IPv6 loopback first, and if this fails, the failing connect() call takes several seconds. To fix, use bind-address=* on Windows, and 127.0.0.1 elsewhere
-
- 30 Oct, 2015 3 commits
-
-
Oleksandr Byelkin authored
MDEV-8913 Derived queries with same column names as final projection causes issues when using Order By find_item_in_list() now recognize view fields like a fields even if they rever to an expression. The problem of schema name do not taken into account for field with it and derived table fixed. Duplicating code removed
-
Sergei Golubchik authored
(with ENABLED_PROFILING=ON, field.h was included indirectly from sql_profile.h)
-
Alexander Barkov authored
A few tests assumes that the CYCLE timer is always available, which is not true on some platforms (e.g. ARM). Fixing the tests not to reply on the CYCLE availability.
-
- 28 Oct, 2015 8 commits
-
-
Sergei Golubchik authored
use table_alias_charset for comparing table names, not files_charset_info
-
Sergei Golubchik authored
-
http://kodi.tvOleksandr Byelkin authored
Item_direct_view_ref maintains its own item_const() method so should use it when asked of temporary table field to be in sync with it.
-
Oleksandr Byelkin authored
Non-select-like queries has no correct JOIN structure connected to top-most SELECT_LEX (and should not).
-
Sergey Vojtovich authored
-
Oleksandr Byelkin authored
MDEV-7930 Assertion `table_share->tmp_table != NO_TMP_TABLE || m_lock_type != 2' failed in handler::ha_index_read_map In optimizing aggregate function do not try to touch tables from outer query.
-
Aditya A authored
ha_partition::init_record_priority_queue() Cherry-pick rev.6b0ee0c795499cee7f9deb649fb010801e0be4c2 from mysql-5.6. Bug #18305270 BACKPORT BUG#18694052 FIX FOR ASSERTION `!M_ORDERED_REC_BUFFER' FAILED TO 5.6 PROBLEM ------- Missed to remove record priority queue if init_index failed for a partition which was causing the crash. FIX --- Remove priority queue if init_index fails for partition.
-
Jan Lindström authored
In buffer pool read hit rate calculation can lead rate that is less than zero.
-
- 27 Oct, 2015 3 commits
-
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
Jan Lindström authored
Analysis: Current implementation will write and read at least one block (sort_buffer_size bytes) from disk / index even if that block does not contain any records. Fix: Avoid writing / reading empty blocks to temporary files (disk).
-
- 26 Oct, 2015 2 commits
-
-
Sergey Vojtovich authored
Since MariaDB packages have absolute paths, they are marked as not relocatable by setting CPACK_RPM_PACKAGE_RELOCATABLE. According to logics of recent CPackRPM it is not enough: one needs to set CPACK_PACKAGE_RELOCATABLE additionally.
-
Sergey Vojtovich authored
mysql_secure_installation used incorrect path while looking up for "mysql" client tool: $basedir/$basedir/bin instead of $basedir/bin. This patch adapts "my_print_defaults" lookup algorithm for "mysql" client tool.
-
- 25 Oct, 2015 1 commit
-
-
Alexey Botchkov authored
MDEV-8358 ALTER TABLE .. ADD PRIMARY KEY IF NOT EXISTS -> ERROR 1068 (42000): Multiple primary key defined Checks for multiple primary keys added.
-
- 24 Oct, 2015 4 commits
-
-
Sergei Golubchik authored
Author: Marc Alff <marc.alff@oracle.com> Date: Thu Jul 30 11:17:50 2015 +0200 Bug#21528683 SLOWDOWN CAUSED BY MEMSET IN SQL_DIGEST_STORAGE.RESET()
-
Sergei Golubchik authored
use CHECK_C_SOURCE_COMPILES for atomic tests if cross-compiling (continue to use CHECK_C_SOURCE_RUNS otherwise)
-
Sergei Golubchik authored
-
Alexander Barkov authored
-
- 23 Oct, 2015 1 commit
-
-
Monty authored
Assertion `inited==INDEX' failed in int handler::ha_index_first(uchar*) The crash was because errors from init_read_record_idx() was not taken care of.
-
- 22 Oct, 2015 8 commits
-
-
Sergei Golubchik authored
don't abort with "XtraDB not supported" if XtraDB was disabled in this build.
-
Sergei Golubchik authored
add a run-time check for jemalloc >= 2.3
-
Sergei Golubchik authored
don't forget to re-examine the current element when updating a HASH
-
Sergei Golubchik authored
strip endspaces from the role name in the parser because they'll be lost anyway when the name is stored in the mysql.user.user column (of type CHAR)
-
Sergei Golubchik authored
-
Sergei Golubchik authored
allow SET PASSWORD from bootstrap and init-file
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
- 21 Oct, 2015 3 commits
-
-
Olivier Bertrand authored
-
Olivier Bertrand authored
modified: storage/connect/tabodbc.cpp
-
Michael Widenius authored
new features: set event_scheduler=ON|OFF will now try to init event scheduler if it's not enabled set event_scheduler=default will try to enable it based on the value of the event_scheduler when mysqld was started
-