maria:bb-11.2-ps2-MDEV-31003

Last commit made on 2023-07-24
Get this branch:
git clone -b bb-11.2-ps2-MDEV-31003 https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-11.2-ps2-MDEV-31003
Repository:
lp:maria

Recent commits

264484b... by Lena Startseva <email address hidden>

MDEV-31003: Second execution for ps-protocol

Update tests for version 11.2

6713a95... by Lena Startseva <email address hidden>

MDEV-31003: Second execution for ps-protocol

Update tests for version 11.1

4b2b0a7... by Lena Startseva <email address hidden>

MDEV-31003: Second execution for ps-protocol

Update tests for version 11.0

acb3d33... by Lena Startseva <email address hidden>

MDEV-31003: Second execution for ps-protocol

Update tests for version 10.10

d9656be... by Lena Startseva <email address hidden>

MDEV-31003: Second execution for ps-protocol

Update tests for version 10.9

b2b976e... by Lena Startseva <email address hidden>

MDEV-31003: Second execution for ps-protocol

Update tests for version 10.6

f7c9259... by Lena Startseva <email address hidden>

MDEV-31003: Second execution for ps-protocol

Update tests for version 10.5

00f923b... by Lena Startseva <email address hidden>

MDEV-31003: Second execution for ps-protocol

This patch adds for "--ps-protocol" second execution
of queries "SELECT".
Also in this patch it is added ability to disable/enable
(--disable_ps2_protocol/--enable_ps2_protocol) second
execution for "--ps-prototocol" in testcases.

f612e1c... by Sergei Golubchik

MDEV-26182 fixes for --ps

* invoke parent's cleanup()
* don't reinit memroot, if already inited (causes memory leak)

also move free_root() from destructor to cleanup() to not accumulate
allocations from prepare and multiple executes

49088c9... by tanruixiang <email address hidden>

MDEV-26182: Implement JSON_INTERSECT()

The idea is to have simple functions that the user can combine to produce
the exact result one wants, whether the user wants JSON object that has
common keys with another JSON object, or same key/value pair etc. So
making simpler function helps here.

We accomplish this by making three separate functions.
1) JSON_OBJECT_FILTER_KEYS(Obj, Arr_keys):
Put keys ( which are basically strings ) in hash, go over the object and
get key one by one. If the key is present in the hash,
add the key-value pair to result.

2) JSON_OBJECT_TO_ARRAY(Obj) : Create a string variable, Go over the json
object, and add each key value pair as an array into the result.

3) JSON_ARRAY_INTERSECT(arr1, arr2) :
Go over one of the json and add each item of the array
in hash (after normalizing each item). Go over the second array,
search the normalized item one by one in the hash. If item is found,
add it to the result.

Implementation Idea: Holyfoot ( Alexey Botchkov)
Author: tanruixiang and Rucha Deodhar