summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2022-08-10 12:24:31 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2022-08-10 12:24:31 +0200
commit1ac0bce36e5bf2136cedb1ce1da949f53cce4404 (patch)
tree7b81481b201c4e64aaa4a70411d992e0fac2289d /client
parent3b071bad1981a12e76769cbfc31b62fbd7362372 (diff)
parent65e8506ca9d03967191b6ed207cf107d311f7f99 (diff)
downloadmariadb-git-1ac0bce36e5bf2136cedb1ce1da949f53cce4404.tar.gz
Merge branch '10.4' into 10.5mariadb-10.5.17
Diffstat (limited to 'client')
-rw-r--r--client/echo.c2
-rw-r--r--client/mysql.cc2
-rw-r--r--client/mysql_plugin.c2
-rw-r--r--client/mysql_upgrade.c6
-rw-r--r--client/mysqladmin.cc2
-rw-r--r--client/mysqlbinlog.cc2
-rw-r--r--client/mysqlcheck.c2
-rw-r--r--client/mysqldump.c16
-rw-r--r--client/mysqlimport.c2
-rw-r--r--client/mysqlslap.c6
-rw-r--r--client/mysqltest.cc27
11 files changed, 35 insertions, 34 deletions
diff --git a/client/echo.c b/client/echo.c
index 90a538faf62..6904f541960 100644
--- a/client/echo.c
+++ b/client/echo.c
@@ -16,7 +16,7 @@
/*
echo is a replacement for the "echo" command builtin to cmd.exe
- on Windows, to get a Unix eqvivalent behaviour when running commands
+ on Windows, to get a Unix equivalent behaviour when running commands
like:
$> echo "hello" | mysql
diff --git a/client/mysql.cc b/client/mysql.cc
index a834ba7ee0d..697f4d54ab3 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -2336,7 +2336,7 @@ static bool add_line(String &buffer, char *line, size_t line_length,
!(*in_string &&
(mysql.server_status & SERVER_STATUS_NO_BACKSLASH_ESCAPES)))
{
- // Found possbile one character command like \c
+ // Found possible one character command like \c
/*
The null-terminating character (ASCII '\0') marks the end of user
diff --git a/client/mysql_plugin.c b/client/mysql_plugin.c
index dcf7537a281..a00f5e4450b 100644
--- a/client/mysql_plugin.c
+++ b/client/mysql_plugin.c
@@ -281,7 +281,7 @@ static char *convert_path(const char *argument)
@param[in] path The Windows path to examine.
- @returns string containing excaped quotes if spaces found in path
+ @returns string containing escaped quotes if spaces found in path
*/
static char *add_quotes(const char *path)
{
diff --git a/client/mysql_upgrade.c b/client/mysql_upgrade.c
index 9f091d037a7..4e7ddec312f 100644
--- a/client/mysql_upgrade.c
+++ b/client/mysql_upgrade.c
@@ -714,7 +714,7 @@ static char upgrade_info_file[FN_REFLEN]= {0};
Open or create mysql_upgrade_info file in servers data dir.
Take a lock to ensure there cannot be any other mysql_upgrades
- runninc concurrently
+ running concurrently
*/
const char *create_error_message=
@@ -775,7 +775,7 @@ static void open_mysql_upgrade_file()
/**
Place holder for versions that require a major upgrade
- @return 0 upgrade has alredy been run on this version
+ @return 0 upgrade has already been run on this version
@return 1 upgrade has to be run
*/
@@ -799,7 +799,7 @@ static int faulty_server_versions(const char *version)
file it's always better to report that the upgrade hasn't
been performed.
- @return 0 Upgrade has alredy been run on this version
+ @return 0 Upgrade has already been run on this version
@return > 0 Upgrade has to be run
*/
diff --git a/client/mysqladmin.cc b/client/mysqladmin.cc
index 5b59cbed30d..85043f03b53 100644
--- a/client/mysqladmin.cc
+++ b/client/mysqladmin.cc
@@ -15,7 +15,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA */
-/* maintaince of mysql databases */
+/* maintenance of mysql databases */
#include "client_priv.h"
#include <signal.h>
diff --git a/client/mysqlbinlog.cc b/client/mysqlbinlog.cc
index 2be52840e91..4084ff33623 100644
--- a/client/mysqlbinlog.cc
+++ b/client/mysqlbinlog.cc
@@ -183,7 +183,7 @@ enum Exit_status {
/**
Pointer to the last read Annotate_rows_log_event. Having read an
- Annotate_rows event, we should not print it immediatedly because all
+ Annotate_rows event, we should not print it immediately because all
subsequent rbr events can be filtered away, and have to keep it for a while.
Also because of that when reading a remote Annotate event we have to keep
its binary log representation in a separately allocated buffer.
diff --git a/client/mysqlcheck.c b/client/mysqlcheck.c
index 7335ff83ff1..bf70a097c09 100644
--- a/client/mysqlcheck.c
+++ b/client/mysqlcheck.c
@@ -919,7 +919,7 @@ static int handle_request_for_tables(char *tables, size_t length,
case DO_ANALYZE:
if (view)
{
- printf("%-50s %s\n", tables, "Can't run anaylyze on a view");
+ printf("%-50s %s\n", tables, "Can't run analyze on a view");
DBUG_RETURN(1);
}
DBUG_ASSERT(!view);
diff --git a/client/mysqldump.c b/client/mysqldump.c
index 1332da9ab00..e742519fa02 100644
--- a/client/mysqldump.c
+++ b/client/mysqldump.c
@@ -1096,8 +1096,8 @@ static int get_options(int *argc, char ***argv)
return(ho_error);
/*
- Dumping under --system=stats with --replace or --inser-ignore is safe and will not
- retult into race condition. Otherwise dump only structure and ignore data by default
+ Dumping under --system=stats with --replace or --insert-ignore is safe and will not
+ result into race condition. Otherwise dump only structure and ignore data by default
while dumping.
*/
if (!(opt_system & OPT_SYSTEM_STATS) && !(opt_ignore || opt_replace_into))
@@ -2901,7 +2901,7 @@ static inline my_bool general_log_or_slow_log_tables(const char *db,
!my_strcasecmp(charset_info, table, "transaction_registry"));
}
/*
- get_sequence_structure-- retrievs sequence structure, prints out corresponding
+ get_sequence_structure-- retrieves sequence structure, prints out corresponding
CREATE statement
ARGS
seq - sequence name
@@ -2963,7 +2963,7 @@ static void get_sequence_structure(const char *seq, const char *db)
DBUG_VOID_RETURN;
}
/*
- get_table_structure -- retrievs database structure, prints out corresponding
+ get_table_structure -- retrieves database structure, prints out corresponding
CREATE statement and fills out insert_pat if the table is the type we will
be dumping.
@@ -4605,7 +4605,7 @@ static int dump_all_users_roles_and_grants()
echo "$dosomethingspecial"
) | mysql -h $host
- doesn't end up with a suprise that the $dosomethingspecial cannot
+ doesn't end up with a surprise that the $dosomethingspecial cannot
be done because `special_role` isn't active.
We create a new role for importing that becomes the default admin for new
@@ -4614,8 +4614,8 @@ static int dump_all_users_roles_and_grants()
create new admins for the created role.
At the end of the import the mariadb_dump_import_role is be dropped,
- which implictly drops all its admin aspects of the dropped role.
- This is significiantly easlier than revoking the ADMIN of each role
+ which implicitly drops all its admin aspects of the dropped role.
+ This is significantly easier than revoking the ADMIN of each role
from the current user.
*/
fputs("SELECT COALESCE(CURRENT_ROLE(),'NONE') into @current_role;\n"
@@ -7038,7 +7038,7 @@ int main(int argc, char **argv)
if (opt_system & OPT_SYSTEM_SERVERS)
dump_all_servers();
- /* These must be last as they explictly change the current database to mysql */
+ /* These must be last as they explicitly change the current database to mysql */
if (opt_system & OPT_SYSTEM_STATS)
dump_all_stats();
diff --git a/client/mysqlimport.c b/client/mysqlimport.c
index a8f6f11520d..6955ca44008 100644
--- a/client/mysqlimport.c
+++ b/client/mysqlimport.c
@@ -571,7 +571,7 @@ static char *add_load_option(char *ptr, const char *object,
/*
** Allow the user to specify field terminator strings like:
** "'", "\", "\\" (escaped backslash), "\t" (tab), "\n" (newline)
-** This is done by doubleing ' and add a end -\ if needed to avoid
+** This is done by doubling ' and add a end -\ if needed to avoid
** syntax errors from the SQL parser.
*/
diff --git a/client/mysqlslap.c b/client/mysqlslap.c
index 757ebae415f..08569f2e1a4 100644
--- a/client/mysqlslap.c
+++ b/client/mysqlslap.c
@@ -23,7 +23,7 @@
then reporting the timing of each stage.
MySQL slap runs three stages:
- 1) Create schema,table, and optionally any SP or data you want to beign
+ 1) Create schema,table, and optionally any SP or data you want to begin
the test with. (single client)
2) Load test (many clients)
3) Cleanup (disconnection, drop table if specified, single client)
@@ -2022,7 +2022,7 @@ parse_option(const char *origin, option_string **stmt, char delm)
char *buffer_ptr;
/*
- Return an error if the length of the any of the comma seprated value
+ Return an error if the length of the comma separated values
exceeds HUGE_STRING_LENGTH.
*/
if ((size_t)(retstr - ptr) > HUGE_STRING_LENGTH)
@@ -2068,7 +2068,7 @@ parse_option(const char *origin, option_string **stmt, char delm)
char *origin_ptr;
/*
- Return an error if the length of the any of the comma seprated value
+ Return an error if the length of any of the comma separated values
exceeds HUGE_STRING_LENGTH.
*/
if (strlen(ptr) > HUGE_STRING_LENGTH)
diff --git a/client/mysqltest.cc b/client/mysqltest.cc
index beaa2846996..835dbb0f983 100644
--- a/client/mysqltest.cc
+++ b/client/mysqltest.cc
@@ -575,10 +575,10 @@ char builtin_echo[FN_REFLEN];
struct st_replace_regex
{
-DYNAMIC_ARRAY regex_arr; /* stores a list of st_regex subsitutions */
+DYNAMIC_ARRAY regex_arr; /* stores a list of st_regex substitutions */
/*
-Temporary storage areas for substitutions. To reduce unnessary copying
+Temporary storage areas for substitutions. To reduce unnecessary copying
and memory freeing/allocation, we pre-allocate two buffers, and alternate
their use, one for input/one for output, the roles changing on the next
st_regex substitution. At the end of substitutions buf points to the
@@ -1934,7 +1934,7 @@ void show_diff(DYNAMIC_STRING* ds,
needs special processing due to return values
on that OS
This test is only done on Windows since it's only needed there
- in order to correctly detect non-availibility of 'diff', and
+ in order to correctly detect non-availability of 'diff', and
the way it's implemented does not work with default 'diff' on Solaris.
*/
#ifdef _WIN32
@@ -2313,7 +2313,7 @@ static int strip_surrounding(char* str, char c1, char c2)
/* Replace it with a space */
*ptr= ' ';
- /* Last non space charecter should be c2 */
+ /* Last non space character should be c2 */
ptr= strend(str)-1;
while(*ptr && my_isspace(charset_info, *ptr))
ptr--;
@@ -3082,7 +3082,7 @@ void open_file(const char *name)
if overlay-dir is specified, and the file is located somewhere
under overlay-dir or under suite-dir, the search works as follows:
- 0.let suffix be current file dirname relative to siute-dir or overlay-dir
+ 0.let suffix be current file dirname relative to suite-dir or overlay-dir
1.try in overlay-dir/suffix
2.try in suite-dir/suffix
3.try in overlay-dir
@@ -5595,7 +5595,7 @@ void do_close_connection(struct st_command *command)
con->stmt= 0;
#ifdef EMBEDDED_LIBRARY
/*
- As query could be still executed in a separate theread
+ As query could be still executed in a separate thread
we need to check if the query's thread was finished and probably wait
(embedded-server specific)
*/
@@ -5894,7 +5894,7 @@ void do_connect(struct st_command *command)
{ "connection name", ARG_STRING, TRUE, &ds_connection_name, "Name of the connection" },
{ "host", ARG_STRING, TRUE, &ds_host, "Host to connect to" },
{ "user", ARG_STRING, FALSE, &ds_user, "User to connect as" },
- { "passsword", ARG_STRING, FALSE, &ds_password, "Password used when connecting" },
+ { "password", ARG_STRING, FALSE, &ds_password, "Password used when connecting" },
{ "database", ARG_STRING, FALSE, &ds_database, "Database to select after connect" },
{ "port", ARG_STRING, FALSE, &ds_port, "Port to connect to" },
{ "socket", ARG_STRING, FALSE, &ds_sock, "Socket to connect with" },
@@ -6388,7 +6388,7 @@ void do_block(enum block_cmd cmd, struct st_command* command)
} else
{
if (*expr_start != '`' && ! my_isdigit(charset_info, *expr_start))
- die("Expression in if/while must beging with $, ` or a number");
+ die("Expression in if/while must begin with $, ` or a number");
eval_expr(&v, expr_start, &expr_end);
}
@@ -8292,7 +8292,7 @@ void handle_no_error(struct st_command *command)
/*
Run query using prepared statement C API
- SYNPOSIS
+ SYNOPSIS
run_query_stmt
mysql - mysql handle
command - current command pointer
@@ -8527,6 +8527,7 @@ end:
}
}
+
DBUG_VOID_RETURN;
}
@@ -8981,7 +8982,7 @@ int util_query(MYSQL* org_mysql, const char* query){
/*
Run query
- SYNPOSIS
+ SYNOPSIS
run_query()
mysql mysql handle
command current command pointer
@@ -10711,7 +10712,7 @@ err:
/*
Execute all substitutions on val.
- Returns: true if substituition was made, false otherwise
+ Returns: true if substitution was made, false otherwise
Side-effect: Sets r->buf to be the buffer with all substitutions done.
IN:
@@ -10805,7 +10806,7 @@ void free_replace_regex()
/*
- auxiluary macro used by reg_replace
+ auxiliary macro used by reg_replace
makes sure the result buffer has sufficient length
*/
#define SECURE_REG_BUF if (buf_len < need_buf_len) \
@@ -11344,7 +11345,7 @@ int init_sets(REP_SETS *sets,uint states)
return 0;
}
-/* Make help sets invisible for nicer codeing */
+/* Make help sets invisible for nicer coding */
void make_sets_invisible(REP_SETS *sets)
{