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.
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.