Marko Mäkelä
c41c79650a
Merge 10.4 into 10.5
2023-02-10 12:02:11 +02:00
Vicențiu Ciorbaru
08c852026d
Apply clang-tidy to remove empty constructors / destructors
...
This patch is the result of running
run-clang-tidy -fix -header-filter=.* -checks='-*,modernize-use-equals-default' .
Code style changes have been done on top. The result of this change
leads to the following improvements:
1. Binary size reduction.
* For a -DBUILD_CONFIG=mysql_release build, the binary size is reduced by
~400kb.
* A raw -DCMAKE_BUILD_TYPE=Release reduces the binary size by ~1.4kb.
2. Compiler can better understand the intent of the code, thus it leads
to more optimization possibilities. Additionally it enabled detecting
unused variables that had an empty default constructor but not marked
so explicitly.
Particular change required following this patch in sql/opt_range.cc
result_keys, an unused template class Bitmap now correctly issues
unused variable warnings.
Setting Bitmap template class constructor to default allows the compiler
to identify that there are no side-effects when instantiating the class.
Previously the compiler could not issue the warning as it assumed Bitmap
class (being a template) would not be performing a NO-OP for its default
constructor. This prevented the "unused variable warning".
2023-02-09 16:09:08 +02:00
Oleksandr Byelkin
4519b42e61
Merge branch '10.4' into 10.5
2022-10-26 15:26:06 +02:00
Oleksandr Byelkin
29633dc0c0
Merge branch '10.3' into 10.4
2022-10-26 14:55:47 +02:00
Alexey Botchkov
77951dd710
MDEV-26161 crash in Gis_point::calculate_haversine
...
More checks for bad geometry data added.
2022-10-26 00:20:40 +04:00
Sergei Golubchik
e910dff81e
MDEV-26161 crash in Gis_point::calculate_haversine
...
return an error on invalid gis data
2022-10-25 21:26:51 +02:00
Sergei Golubchik
72e79eaaf3
cleanup: put casts in a separate statement
...
remove useless if()
2022-10-25 20:24:34 +02:00
Marko Mäkelä
cacb61b6be
Merge 10.4 into 10.5
2022-04-06 10:06:39 +03:00
Marko Mäkelä
5eae8c2742
Merge 10.4 into 10.5
2021-03-31 11:05:21 +03:00
Marko Mäkelä
50de71b026
Merge 10.3 into 10.4
2021-03-31 09:47:14 +03:00
Marko Mäkelä
d6d3d9ae2f
Merge 10.2 into 10.3
2021-03-31 08:01:03 +03:00
Anel Husakovic
2fc76a5022
MDEV-13467: Feature request: Support for ST_Distance_Sphere()
...
- jump to label ‘handle_errors’ can enter to the scope of non-POD
‘Geometry_buffer buffer2’
2021-03-27 21:02:19 +01:00
Anel Husakovic
5eda18f0ca
MDEV-25272: Wrong function name in error messages upon ST_GeomFromGeoJSON call
...
- Invalid function name during ER_WRONG_VALUE_FOR_TYPE and ER_GIS_INVALID_DATA
2021-03-27 10:55:00 +01:00
Anel Husakovic
6769d1a078
MDEV-13467: Feature request: Support for ST_Distance_Sphere()
...
- Cherry-pick 51e48b9f89
- vscode gitignore
- Thanks Robin Dupret for the review.
Reviewed by:daniel@mariadb.org
holyfoot@mariadb.com
2021-03-27 10:42:39 +01:00
Sujatha
25ede13611
Merge branch '10.4' into 10.5
2020-09-29 16:59:36 +05:30
Sujatha
ce845b7a2f
Merge branch '10.3' into 10.4
2020-09-28 17:55:39 +05:30
Sujatha
6cbbd6bd96
Merge branch '10.2' into 10.3
2020-09-28 17:27:42 +05:30
Marko Mäkelä
af40a2b43e
Fix GCC 10.2.0 -Og -fsanitize=undefined -Wmaybe-uninitialized
...
For some reason, adding -fsanitize=undefined (cmake -DWITH_UBSAN=ON)
to the compilation flags will cause even more warnings to be emitted.
The warnings do look bogus, but the code can be simplified.
2020-09-23 12:27:56 +03:00
Marko Mäkelä
cf87f3e08c
Merge 10.4 into 10.5
2020-08-14 11:33:35 +03:00
Marko Mäkelä
2f7b37b021
Merge 10.3 into 10.4, except MDEV-22543
...
Also, fix GCC -Og -Wmaybe-uninitialized in run_backup_stage()
2020-08-13 18:48:41 +03:00
Marko Mäkelä
4bd56a697f
Merge 10.2 into 10.3
2020-08-13 18:18:25 +03:00
Marko Mäkelä
31aef3ae99
Fix GCC 10.2.0 -Og -Wmaybe-uninitialized
...
For some reason, GCC emits more -Wmaybe-uninitialized warnings
when using the flag -Og than when using -O2. Many of the warnings
look genuine.
2020-08-11 15:58:16 +03:00
Alexander Barkov
9c96061525
Part2: MDEV-20837 Add MariaDB_FUNCTION_PLUGIN
...
Removing MariaDB_FUNCTION_COLLECTION_PLUGIN
2019-10-16 21:47:41 +04:00
Alexander Barkov
cbf6beba40
MDEV-20764 Add MariaDB_FUNCTION_COLLECTION_PLUGIN
2019-10-07 11:31:32 +04:00
Alexander Barkov
feb2695ed3
MDEV-20004 Move Field_geom from field.cc to sql_type_geom.cc
2019-07-09 19:47:57 +04:00
Alexander Barkov
4dc85973b4
MDEV-19994 Add class Function_collection
2019-07-09 16:18:54 +04:00
Alexander Barkov
a6946c55d3
MDEV-19972 Move GIS code from Item_bool_func::get_full_func_mm_tree() to Item_func_spatial_rel::get_mm_leaf()
2019-07-05 20:52:59 +04:00
Alexander Barkov
b511202335
MDEV-19923 Add type handlers for geometry sub-types
2019-07-03 14:51:00 +04:00
Oleksandr Byelkin
c07325f932
Merge branch '10.3' into 10.4
2019-05-19 20:55:37 +02:00
Marko Mäkelä
be85d3e61b
Merge 10.2 into 10.3
2019-05-14 17:18:46 +03:00
Marko Mäkelä
26a14ee130
Merge 10.1 into 10.2
2019-05-13 17:54:04 +03:00
Vicențiu Ciorbaru
cb248f8806
Merge branch '5.5' into 10.1
2019-05-11 22:19:05 +03:00
Vicențiu Ciorbaru
5543b75550
Update FSF Address
...
* Update wrong zip-code
2019-05-11 21:29:06 +03:00
Monty
a9ca819897
Call alloc() instead of realloc()
...
Use alloc() if we don't need original string (avoid copy)
Removed not needed test of str_length in sql_string.cc
2018-07-13 20:14:27 +03:00
Oleksandr Byelkin
083279f783
Merge commit '6b8802e8dd5467556a024d807a1df23940b00895' into bb-10.3-fix_len_dec
2018-06-19 14:51:50 +02:00
Oleksandr Byelkin
6b8802e8dd
MDEV-11071: Assertion `thd->transaction.stmt.is_empty()' failed in Locked_tables_list::unlock_locked_table
...
fix_length_and_dec now return result (error/OK)
2018-06-15 10:31:30 +02:00
Marko Mäkelä
7cb3520c06
Merge bb-10.2-ext into 10.3
2017-11-30 08:16:37 +02:00
Alexander Barkov
4a8039b04e
Merge remote-tracking branch 'origin/10.2' into bb-10.2-ext
2017-11-20 11:12:08 +04:00
Alexey Botchkov
24184938ad
MDEV-11881 Empty coordinates must be rejected in GeoJSON objects.
...
Check for the empty 'coordinates' array.
2017-11-14 13:36:50 +04:00
Marko Mäkelä
a48aa0cd56
Merge bb-10.2-ext into 10.3
2017-11-10 16:12:45 +02:00
Alexander Barkov
5fc79476b5
Merge remote-tracking branch 'origin/10.2' into bb-10.2-ext
2017-11-03 09:29:21 +04:00
Monty
0f4e005541
Fixed compiler warning and warning from valgrind
...
The failing test was main.gis-json
2017-11-02 15:40:27 +02:00
Alexander Barkov
835cbbcc7b
Merge remote-tracking branch 'origin/bb-10.2-ext' into 10.3
...
TODO: enable MDEV-13049 optimization for 10.3
2017-10-30 20:47:39 +04:00
Alexander Barkov
30e7d6709f
Merge remote-tracking branch 'origin/10.2' into bb-10.2-ext
2017-10-18 14:11:55 +04:00
Alexey Botchkov
fe0d2e1a2b
MDEV-13923 Assertion `!is_set() || (m_status == DA_OK_BULK &&
...
is_bulk_op())' failed upon altering table with geometry field.
Check for the validity of the DEFAULT value for the
geometry field.
2017-10-11 11:57:26 +04:00
Alexey Botchkov
ea4e8bab32
MDEV-12705 10.1.18-MariaDB-1~jessie - mysqld got signal 11.
...
Space for the next operation wasn't reserved in
Item_func_spatial_relate::val_str()
2017-10-07 14:24:49 +04:00
Alexey Botchkov
5eb666ad37
MDEV-12705 10.1.18-MariaDB-1~jessie - mysqld got signal 11.
...
Space for the next operation wasn't reserved in
Item_func_spatial_relate::val_str()
2017-10-07 14:17:45 +04:00
Michael Widenius
4aaa38d26e
Enusure that my_global.h is included first
...
- Added sql/mariadb.h file that should be included first by files in sql
directory, if sql_plugin.h is not used (sql_plugin.h adds SHOW variables
that must be done before my_global.h is included)
- Removed a lot of include my_global.h from include files
- Removed include's of some files that my_global.h automatically includes
- Removed duplicated include's of my_sys.h
- Replaced include my_config.h with my_global.h
2017-08-24 01:05:44 +02:00
Alexander Barkov
988a9daa94
Merge remote-tracking branch 'origin/10.2' into bb-10.2-ext
...
Conflicts:
mysql-test/r/func_json.result
mysql-test/r/win.result
mysql-test/t/func_json.test
mysql-test/t/win.test
sql/share/errmsg-utf8.txt
storage/rocksdb/ha_rocksdb.cc
storage/rocksdb/mysql-test/rocksdb/r/tbl_opt_data_index_dir.result
2017-08-07 21:35:34 +04:00
Alexey Botchkov
4ff6ebf76a
MDEV-12181 ST_AsGeoJSON argument does not limit decimals.
...
Options handling implemented for ST_AsGeoJSON.
2017-08-07 12:49:04 +04:00