Skip to content

Commit

Permalink
Fix several typos in sql/item_jsonfunc.cc
Browse files Browse the repository at this point in the history
insencitive -> insensitive
excapint -> excipient
Jost -> Just
belive -> believe
  • Loading branch information
HollowMan6 authored and grooverdan committed Mar 11, 2021
1 parent bda8a2a commit f386fdd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sql/item_jsonfunc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/*
Compare ASCII string against the string with the specified
character set.
Only compares the equality, case insencitive.
Only compares the equality, case insensitive.
*/
static bool eq_ascii_string(const CHARSET_INFO *cs,
const char *ascii,
Expand Down Expand Up @@ -1115,7 +1115,7 @@ static int check_contains(json_engine_t *js, json_engine_t *value)
if (value->value_type != JSON_VALUE_STRING)
return FALSE;
/*
TODO: make proper json-json comparison here that takes excapint
TODO: make proper json-json comparison here that takes excipient
into account.
*/
return value->value_len == js->value_len &&
Expand Down Expand Up @@ -1403,7 +1403,7 @@ longlong Item_func_json_contains_path::val_int()
n_found= arg_count - 2;
}
else
n_found= 0; /* Jost to prevent 'uninitialized value' warnings */
n_found= 0; /* Just to prevent 'uninitialized value' warnings */

result= 0;
while (json_get_path_next(&je, &p) == 0)
Expand Down Expand Up @@ -3373,7 +3373,7 @@ bool Item_func_json_search::fix_length_and_dec()

/*
It's rather difficult to estimate the length of the result.
I belive arglen^2 is the reasonable upper limit.
I believe arglen^2 is the reasonable upper limit.
*/
if (args[0]->max_length > SQR_MAX_BLOB_WIDTH)
max_length= MAX_BLOB_WIDTH;
Expand Down

0 comments on commit f386fdd

Please sign in to comment.