summaryrefslogtreecommitdiff
path: root/storage/connect
Commit message (Collapse)AuthorAgeFilesLines
* Merge 10.7 into 10.8Marko Mäkelä2023-01-135-14/+6
|\
| * Merge 10.6 into 10.7Marko Mäkelä2023-01-135-14/+6
| |\
| | * Merge 10.5 into 10.6Marko Mäkelä2023-01-135-14/+6
| | |\
| | | * Merge 10.4 into 10.5Marko Mäkelä2023-01-135-14/+6
| | | |\
| | | | * Merge branch '10.3' into 10.4Sergei Golubchik2023-01-105-14/+6
| | | | |\
| | | | | * clang15 warnings - unused vars and old prototypesDaniel Black2023-01-104-13/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | clang15 finally errors on old prototype definations. Its also a lot fussier about variables that aren't used as is the case a number of time with loop counters that aren't examined. RocksDB was complaining that its get_range function was declared without the array length in ha_rocksdb.h. While a constant is used rather than trying to import the Rdb_key_def::INDEX_NUMBER_SIZE header (was causing a lot of errors on the defination of other orders). If the constant does change can be assured that the same compile warnings will tell us of the error. The ha_rocksdb::index_read_map_impl DBUG_EXECUTE_IF was similar to the existing endless functions used in replication tests. Its rather moot point as the rocksdb.force_shutdown test that uses myrocks_busy_loop_on_row_read is currently disabled.
| | | | | * fix typoslilinjie2023-01-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: lilinjie <lilinjie@uniontech.com>
* | | | | | Merge 10.7 into 10.8Marko Mäkelä2023-01-101-4/+4
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | The MDEV-25004 test innodb_fts.versioning is omitted because ever since commit 685d958e38b825ad9829be311f26729cccf37c46 InnoDB would not allow writes to a database where the redo log file ib_logfile0 is missing.
| * | | | | Merge 10.6 into 10.7Marko Mäkelä2023-01-041-4/+4
| |\ \ \ \ \ | | |/ / / /
| | * | | | Merge 10.5 into 10.6Marko Mäkelä2023-01-031-4/+4
| | |\ \ \ \ | | | |/ / /
| | | * | | Merge 10.4 into 10.5Marko Mäkelä2023-01-031-4/+4
| | | |\ \ \ | | | | |/ /
| | | | * | Merge 10.3 into 10.4Marko Mäkelä2023-01-031-4/+4
| | | | |\ \ | | | | | |/
| | | | | * typosmusvaage2022-12-211-4/+4
| | | | | |
* | | | | | Merge 10.7 into 10.8Marko Mäkelä2022-12-136-8/+137
|\ \ \ \ \ \ | |/ / / / /
| * | | | | Merge 10.6 into 10.7Marko Mäkelä2022-12-136-8/+137
| |\ \ \ \ \ | | |/ / / /
| | * | | | Merge 10.5 into 10.6Marko Mäkelä2022-12-136-8/+137
| | |\ \ \ \ | | | |/ / /
| | | * | | Merge 10.4 into 10.5Marko Mäkelä2022-12-136-7/+136
| | | |\ \ \ | | | | |/ /
| | | | * | Merge 10.3 into 10.4Marko Mäkelä2022-12-136-7/+136
| | | | |\ \ | | | | | |/
| | | | | * MDEV-28299: Server crashes in XINDXS::Range/CntIndexRange (Connect engine)Anel Husakovic2022-11-293-0/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Bug happens only in case when the range function on empty key single column index (XINDEXS) is used. - Solution is to return with empty result in this scenario. Reviewed by: <>
| | | | | * MDEV-28489 CONNECT used incorrect CHAR lengthAndrew Hutchings2022-11-113-7/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CONNECT engine was using dividing UTF8 columns by 3 to get the length, but in reality it did need the byte length. This fixes MDEV-26722 too.
* | | | | | Merge 10.7 into 10.8Marko Mäkelä2022-11-094-3/+21
|\ \ \ \ \ \ | |/ / / / /
| * | | | | Merge 10.6 into 10.7Marko Mäkelä2022-11-094-3/+21
| |\ \ \ \ \ | | |/ / / /
| | * | | | Merge 10.5 into 10.6Marko Mäkelä2022-11-094-3/+21
| | |\ \ \ \ | | | |/ / /
| | | * | | Merge 10.4 into 10.5Marko Mäkelä2022-11-094-3/+21
| | | |\ \ \ | | | | |/ /
| | | | * | Merge 10.3 into 10.4Marko Mäkelä2022-11-094-3/+21
| | | | |\ \ | | | | | |/
| | | | | * MDEV-29397 CONNECT engine: Fix note turning into error (#2325)Andrew Hutchings2022-11-084-3/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * MDEV-29397 Fix note turning into error ODBC Rewind triggered an error with no SQL, but this is sometimes a valid condition (as can be seen with other classes). Setting this to a 0 return stops errors firing when they shouldn't. Also fixes ASAN hits from in MDEV-29687 tabext.cpp.
| * | | | | Merge branch '10.6' into 10.7Oleksandr Byelkin2022-11-022-5/+5
| |\ \ \ \ \ | | |/ / / /
* | | | | | Merge branch '10.7' into 10.8Oleksandr Byelkin2022-11-022-5/+5
|\ \ \ \ \ \
| * \ \ \ \ \ Merge branch '10.6' into 10.7Oleksandr Byelkin2022-11-022-5/+5
| |\ \ \ \ \ \ | | |/ / / / / | |/| / / / / | | |/ / / /
| | * | | | Merge branch '10.5' into 10.6Oleksandr Byelkin2022-11-022-5/+5
| | |\ \ \ \ | | | |/ / /
| | | * | | Merge branch '10.4' into 10.5Oleksandr Byelkin2022-10-262-5/+5
| | | |\ \ \ | | | | |/ /
| | | | * | Merge branch '10.3' into 10.4Oleksandr Byelkin2022-10-262-5/+5
| | | | |\ \ | | | | | |/
| | | | | * MDEV-29578 Fix CONNECT build warningsAndrew Hutchings2022-10-262-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | Fix a couple of build warnings that fire with CONNECT engine.
* | | | | | Merge 10.7 into 10.8Marko Mäkelä2022-11-017-27/+96
|\ \ \ \ \ \ | |/ / / / /
| * | | | | Merge branch '10.6' into 10.7Oleksandr Byelkin2022-10-297-27/+96
| |\ \ \ \ \ | | |/ / / /
| | * | | | Merge 10.5 into 10.6Marko Mäkelä2022-10-257-27/+96
| | |\ \ \ \ | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | To prevent ASAN heap-use-after-poison in the MDEV-16549 part of ./mtr --repeat=6 main.derived the initialization of Name_resolution_context was cleaned up.
| | | * | | Merge 10.4 into 10.5Marko Mäkelä2022-10-257-27/+96
| | | |\ \ \ | | | | |/ /
| | | | * | Merge 10.3 into 10.4Marko Mäkelä2022-10-257-27/+96
| | | | |\ \ | | | | | |/
| | | | | * CONNECT: compile with libxml2 2.10.xSergei Golubchik2022-10-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | storage/connect/libdoc.cpp:603:17: error: 'void xmlXPathInit()' is deprecated [-Werror=deprecated-declarations]
| | | | | * MDEV-29687:ODBC tables do not quote identifier names correctly (#2295)Anel2022-10-216-5/+68
| | | | | | | | | | | | | | | | | | Reviewer: andrew@mariadb.org
| | | | | * Update ODBC instructions for Connect SE and update ODBC result file (#2284)Anel2022-10-163-22/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ODBC Connect cosmetic fixes - Update command for connection for default `peer` authentication for user `postgres` (unless changed in `pg_hba.conf`). - Update command for privilege to be more verbose. - Update path for `.sql` file - Update instructions for `pg_hba.conf` file to use unix socket (`local`) type as well as TCP/IP type `host`. - Update instruction about usage of user dsn (data source file) over system dsn. - Update path of `odbc-postgresql` driver path in comment * Connect SE: update ODBC result file
* | | | | | Merge branch '10.7' into 10.8Oleksandr Byelkin2022-10-0418-70/+136
|\ \ \ \ \ \ | |/ / / / /
| * | | | | Merge branch '10.6' into 10.7Oleksandr Byelkin2022-10-0418-70/+136
| |\ \ \ \ \ | | |/ / / /
| | * | | | Merge branch '10.5' into 10.6Sergei Golubchik2022-10-0218-70/+136
| | |\ \ \ \ | | | |/ / /
| | | * | | Merge branch '10.4' into 10.5Sergei Golubchik2022-10-0218-70/+136
| | | |\ \ \ | | | | |/ /
| | | | * | Merge branch '10.3' into 10.4Sergei Golubchik2022-10-0118-77/+145
| | | | |\ \ | | | | | |/
| | | | | * Use memory safe snprintf() in Connect Engine and elsewhere (#2210)Mikhail Chalov2022-09-289-21/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Continue with similar changes as done in 19af1890 to replace sprintf(buf, ...) with snprintf(buf, sizeof(buf), ...), specifically in the "easy" cases where buf is allocated with a size known at compile time. All new code of the whole pull request, including one or several files that are either new files or modified ones, are contributed under the BSD-new license. I am contributing on behalf of my employer Amazon Web Services, Inc.
| | | | | * MDEV-29579 Fix CONNECT ASAN hits (#2277)Andrew Hutchings2022-09-262-38/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are currently two things causing ASAN hits on CONNECT engine when the plugin is used as a dynamic module. These are libxml2 and libodbc. libxml2 has some quirks when not the first and last thing called in the main thread of an application, some of the global memory isn't cleaned up correctly. The same is assumed of libodbc but this does not have explicit API for this. This is being fixed in two ways. First we are removing the libxml2 cleanup call. This is because the current one is messy and whatever it fixed has gone away. But also because if this is called and libxml2 is used again this can cause issues. For example if two different plugins to MariaDB both happen to use libxml2. The second fix is a hack that exploits `STB_GNU_UNIQUE` so that when compiled with ASAN the plugin will remain in memory after dlclose(). This allows libodbc to cleanup and has the added advatage that we will get clean stacks from ASAN for CONNECT when the leak is detected at the end of execution. Details of the `STB_GNU_UNIQUE` method can be found here: https://web.archive.org/web/20100730094324/http://www.redhat.com/archives/posix-c++-wg/2009-August/msg00002.html
| | | | | * MDEV-28533: CONNECT engine does not quote columns involved in WHERE clause ↵Anel2022-09-263-4/+56
| | | | | | | | | | | | | | | | | | | | | | | | (#2263)
| | | | | * MDEV-25767 Fix CONNECT ODBC WHERE condition crash (#2243)Andrew Hutchings2022-09-234-14/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When an UPDATE or DELETE was executed with a WHERE condition it would crash the MariaDB server. This is because the code expects the WHERE condition to have generated a query string but it hasn't. Also updates the ODBC test results for current MariaDB version.