summaryrefslogtreecommitdiff
path: root/unittest
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-9773: Memory corruption in mariadb_dyncol_unpackOleksandr Byelkin2016-03-241-1/+43
| | | | Fixed calculating pointer to memory allocated for names in numeric format in unpacking procedure.
* Merge branch '5.5' into 10.0Sergei Golubchik2016-02-153-3/+77
|\
| * compilation errors on sparc sun studio 10Sergei Golubchik2016-02-152-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | 1. unused static inline functions are only removed at -xO4, otherwise test binaries will depend on various mysys symbols that they don't use. Link test with libmysys. 2. Sphinx - don't instantiate (explicitly) templates before they're defined. Or, rather, don't instantiate them explicitly at all. 3. GIS - don't use anonymous unions and structs.
| * MDEV-4664 mysql_upgrade crashes if root's password contains an ↵Sergei Golubchik2016-02-061-5/+5
| | | | | | | | | | | | | | apostrophe/single quotation mark fix dynstr_append_os_quoted() to escape single quotes correctly for a POSIX shell
| * unit test for dynstr_append_os_quoted()Sergei Golubchik2016-02-062-1/+75
| | | | | | | | and a trivial cleanup to avoid manually-specified lengths
| * my_decimal didn't compile properly with debugMonty2016-01-291-1/+1
| |
* | Merge branch '5.5' into 10.0Sergei Golubchik2015-12-133-2/+104
|\ \ | |/
| * MDEV-8407 Numeric errors, server crash with COLUMN_JSON() on DECIMAL with ↵Oleksandr Byelkin2015-12-101-2/+32
| | | | | | | | | | | | precision > 40 In fact it was error in decimal library (incorrect processing of buffer overflow) invisible from other server parts because of buffer allocation and precision tests.
| * unit tests for my_getoptSergei Golubchik2015-12-092-0/+72
| |
* | 5.5.40+ mergeSergei Golubchik2014-10-091-1/+2
|\ \ | |/
* | 5.5 mergeSergei Golubchik2014-05-094-13/+30
|\ \ | |/
| * fix broken -DWITHOUT_SERVER build: move sql-dependent unit test from mysys/ ↵Sergei Golubchik2014-05-053-13/+29
| | | | | | | | to sql/
| * mysql-5.5.37 selective mergeSergei Golubchik2014-03-271-0/+1
| |\
| | * Updated/added copyright header. Added line "use is subject to license terms" Murthy Narkedimilli2014-02-171-0/+1
| | | | | | | | | | | | | | | to copyright header.
* | | MDEV-5620 CMake option to compile against an external PCRE librarySergei Golubchik2014-03-041-2/+1
| | |
* | | 10.0-base mergeSergei Golubchik2014-02-261-0/+1
|\ \ \
* | | | Fixes to get valgrind to work with jemallocMichael Widenius2014-01-021-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added MALLOC_LIBRARY variable to hold name of malloc library - Back ported valgrind related fixes from jemalloc 3.4.1 to the included jemalloc 3.3.1 - Renamed bitmap_init() and bitmap_free() to my_bitmap_init() and my_bitmap_free() to avoid clash with jemalloc 3.4.1 - Use option --soname-synonyms=somalloc=NON to valgrind when using jemalloc - Show version related variables in mysqld --help -- Added SHOW_VALUE_IN_HELP marker Increased back_log to 150 as the original value was a bit too small CMakeLists.txt: Added MALLOC_LIBRARY variable to hold name of malloc library cmake/jemalloc.cmake: Added MALLOC_LIBRARY variable to hold name of malloc library config.h.cmake: Added MALLOC_LIBRARY variable to hold name of malloc library extra/jemalloc/ChangeLog: Updates changelog extra/jemalloc/include/jemalloc/internal/arena.h: Backported valgrind fixes from jemalloc 3.4.1 extra/jemalloc/include/jemalloc/internal/jemalloc_internal.h.in: Backported valgrind fixes from jemalloc 3.4.1 extra/jemalloc/include/jemalloc/internal/private_namespace.h: Backported valgrind fixes from jemalloc 3.4.1 extra/jemalloc/include/jemalloc/internal/tcache.h: Backported valgrind fixes from jemalloc 3.4.1 extra/jemalloc/src/arena.c: Backported valgrind fixes from jemalloc 3.4.1 include/my_bitmap.h: Renamed bitmap_init() and bitmap_free() to my_bitmap_init() and my_bitmap_free() to avoid clash with jemalloc 3.4.1 mysql-test/mysql-test-run.pl: Use option --soname-synonyms=somalloc=NON to valgrind when using jemalloc mysql-test/valgrind.supp: Supression of memory leak in OpenSuse 12.3 mysys/my_bitmap.c: Renamed bitmap_init() and bitmap_free() to my_bitmap_init() and my_bitmap_free() sql/ha_ndbcluster_binlog.cc: Renames sql/ha_ndbcluster_cond.h: Renames sql/ha_partition.cc: Renames sql/handler.cc: Renames sql/item_subselect.cc: Renames sql/log_event.cc: Renames sql/log_event_old.cc: Renames sql/mysqld.cc: Renames Show version related variables in mysqld --help sql/opt_range.cc: Renames sql/opt_table_elimination.cc: Renames sql/partition_info.cc: Renames sql/rpl_injector.h: Renames sql/set_var.h: Renames sql/slave.cc: Renames sql/sql_bitmap.h: Renames sql/sql_insert.cc: Renames sql/sql_lex.h: Renames sql/sql_parse.cc: Renames sql/sql_partition.cc: Renames sql/sql_select.cc: Renames sql/sql_show.cc: Renames sql/sql_update.cc: Renames sql/sys_vars.cc: Show version related variables in mysqld --help sql/sys_vars.h: Added SHOW_VALUE_IN_HELP marker for variables that should be shown in --help sql/table.cc: Renames sql/table.h: Removed not used bitmap_init_value storage/connect/ha_connect.cc: Removed compiler warning storage/maria/ma_open.c: Renames unittest/mysys/bitmap-t.c: Renames
* | | | MDEV-5085: Dynamic columns require inclusion of my_sys.h and my_global.hunknown2013-10-071-1/+0
| | | |
* | | | Merge 10.0-base -> 10.0Alexander Barkov2013-10-151-1/+2
|\ \ \ \ | |/ / /
| * | | A follow-up for the previous commit:Alexander Barkov2013-10-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MDEV-4425 Regexp enhancements Adding ${CMAKE_BINARY_DIR}/pcre into search path for *.h files. Needed for find pcre.h (which is generated from pcre.h.in) when build directory != source directory.
| * | | MDEV-4425 REGEXP enhancementsAlexander Barkov2013-09-261-1/+1
| | | |
* | | | Merging TO_BASE64() and FROM_BASE64() from MySQL-5.6Alexander Barkov2013-09-231-1/+1
| | | |
* | | | 10.0-base merge.Sergei Golubchik2013-09-214-3/+98
|\ \ \ \ | |/ / / | | | | | | | | | | | | Partitioning/InnoDB changes are *not* merged (they'll come from 5.6) TokuDB does not compile (not updated to 10.0 SE API)
| * | | 5.5 merge and fixes for compiler/test errorsSergei Golubchik2013-09-183-2/+97
| |\ \ \ | | |/ /
| | * | mysql-5.5.33 mergeSergei Golubchik2013-09-063-2/+97
| | |\ \ | | | |/
| | | * Bug #16994338 PARSING TAP OUTPUT OF UNIT TEST EXPLAIN_FILENAME-T FAILSAnnamalai Gurusami2013-06-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: The problem is that explain_filename-t is not printing a test plan as required by the TAP protocol. The test invokes plan(NO_PLAN) but does not invoke exit_status() at the end, where the plan would be printed. Solution: Invoke exit_status() at the end.
| | | * Bug#16729109: FIX COMPILATION WARNINGS WITH GCC 4.8Tor Didriksen2013-06-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport to 5.5 (external Bug#69407 Build warnings with mysql) support-files/build-tags: Run etags on sql_yacc.yy, ignore other .yy files unittest/mysys/explain_filename-t.cc: NO_PLAN seems to fail on some platforms, use the actual number instead.
| | | * BUG #13619394 - MAKE TEST FAILS ON MY_VSNPRINTF sayantan dutta2013-06-031-5/+0
| | | |
| | | * Merge from 5.5 to 5.6Chaithra Gopalareddy2013-05-232-0/+104
| | | |\
| | | | * Bug#11766191:INVALID MEMORY READ IN DO_DIV_MOD WITH DOUBLY ASSIGNED VARIABLESChaithra Gopalareddy2013-05-223-3/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug#12608543: CRASHES WITH DECIMALS AND STATEMENT NEEDS TO BE REPREPARED ERRORS Backporting these two fixes to 5.1 Added unittest to test my_decimal construtor and assignment operators sql/my_decimal.h: Added constructor and assignment operators for my_decimal unittest/my_decimal/my_decimal-t.cc: Added test to check constructor and assignment operators for my_decimal
| | | | * Bug 16395495 - OLD FSF ADDRESS IN GPL HEADERMurthy Narkedimilli2013-03-192-2/+2
| | | | |
| | | | * Updated/added copyright headers.Murthy Narkedimilli2013-02-252-2/+2
| | | | |
| | | * | BUG #16813006 - UNIT TEST FOR MY_VSNPRINTF FAIL FOR NON GNU COMPILERsayantan dutta2013-05-161-0/+3
| | | | |
* | | | | MDEV-4993:Impossible to free a dynamic columnunknown2013-09-171-54/+54
| | | | | | | | | | | | | | | | | | | | Fix of API of dynamic columns (it made uniform and real function used to free the string).
* | | | | MDEV-4995: mariadb_dyncol_column_count returns error when passing an empty ↵unknown2013-09-111-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dynamic column An empty string processing added to mariadb_dyncol_column_count().
* | | | | MDEV-4994: Crash in dynamic column APIunknown2013-09-112-75/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dynamic columns unittest fix. Correct processing of empty string added to creation dynamic string procedure List function of numeric format fixed when empty string passed. Unit test calls changed to new ones. Unit test added to cmake file.
* | | | | 10.0-base mergeSergei Golubchik2013-07-185-3/+239
|\ \ \ \ \ | |/ / / /
| * | | | 5.5 mergeSergei Golubchik2013-07-175-3/+239
| |\ \ \ \ | | |/ / /
| | * | | mysql-5.5.32 mergeSergei Golubchik2013-07-164-4/+177
| | |\ \ \ | | | |/ /
| | | * | Bug #16051728 SERVER CRASHES IN ADD_IDENTIFIER ON CONCURRENT ALTER TABLE ANDAnnamalai Gurusami2013-03-212-1/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SHOW ENGINE INNOD Problem: The purpose of explain_filename() is to provide useful additional information regarding the partitions given the filename. This function was returning an error when it was not able to parse the given filename. For example, within InnoDB, temporary files are created with #sql- prefix. But this function was not able to parse it correctly. Solution: It is not an error, if explain_filename() could not parse the given filename. If there is no partition information to explain, then silently return from the function. rb#1940 approved by mattiasj
| | | * | Fix for Bug 16395495 - OLD FSF ADDRESS IN GPL HEADERMurthy Narkedimilli2013-03-192-2/+2
| | | | |
| | | * | Bug #13619394 - MAKE TEST FAILS ON MY_VSNPRINTF unknown2013-02-221-1/+3
| | | | |
| | | * | BUG #13619394: fixing incorrect revertBjorn Munch2012-03-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Doing this for Sayantan whose VPN is not working ATM
| | | * | BUG #13619394 - 62572: "MAKE TEST" FAILS ON "MY_VSNPRINTF"Reverting Back ↵unknown2012-03-151-1/+1
| | | | | | | | | | | | | | | | | | | | sighting Bar's mail.
| | | * | BUG #13619394: "MAKE TEST" FAILS ON "MY_VSNPRINTF"unknown2012-03-141-1/+1
| | | | |
| | * | | unit test case for MDEV-4576Vladislav Vaintroub2013-06-172-0/+61
| | | | |
* | | | | correct truncation in my_vsnprintf %M formatSergei Golubchik2012-10-251-57/+27
| | | | | | | | | | | | | | | | | | | | (because of a width or a short buffer)
* | | | | 10.0-base -> 10.0-montySergei Golubchik2012-10-194-2/+233
|\ \ \ \ \ | |/ / / /
| * | | | SHOW EXPLAIN: merge to 10.0-base.Sergey Petrunya2012-10-062-0/+230
| |\ \ \ \
| | * \ \ \ MWL#182: Explain running statements: merge with 5.5-mainSergey Petrunya2012-08-122-0/+230
| | |\ \ \ \ | | | |/ / / | | |/| | |