Skip to content

Commit 60aeb14

Browse files
author
Staale Deraas
committed
Bug#20135835: FIX THE SPELLING OF PRECEDING, SPECIFIED, RECEIVED AND ADDITIONALLY
Contribution by Otto Kekalainen.
1 parent 8fc0c26 commit 60aeb14

38 files changed

+54
-55
lines changed

include/mysql_com.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ enum enum_server_command
9090

9191
/*
9292
Length of random string sent by server on handshake; this is also length of
93-
obfuscated password, recieved from client
93+
obfuscated password, received from client
9494
*/
9595
#define SCRAMBLE_LENGTH 20
9696
#define AUTH_PLUGIN_DATA_PART_1_LENGTH 8

libevent/event.3

+1-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ the type of event which will be either
253253
or
254254
.Va EV_WRITE .
255255
Additionally, an event which has registered interest in more than one of the
256-
preceeding events, via bitwise-OR to
256+
preceding events, via bitwise-OR to
257257
.Fn event_set ,
258258
can provide its callback function with a bitwise-OR of more than one triggered
259259
event.

libmysql/errmsg.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const char *client_errors[]=
8181
"Attempt to read a row while there is no result set associated with the statement",
8282
"This feature is not implemented yet",
8383
"Lost connection to MySQL server at '%s', system error: %d",
84-
"Statement closed indirectly because of a preceeding %s() call",
84+
"Statement closed indirectly because of a preceding %s() call",
8585
"The number of columns in the result set differs from the number of bound buffers. You must reset the statement, rebind the result set columns, and execute the statement again",
8686
"This handle is already connected. Use a separate handle for each connection.",
8787
"Authentication plugin '%s' cannot be loaded: %s",

mysql-test/extra/rpl_tests/rpl_ddl.test

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@
9898
# --> less switching of AUTOCOMMIT mode on master side.
9999
#
100100
# 4. Never use a test object, which was direct or indirect affected by a
101-
# preceeding test sequence again.
102-
# If one preceeding test sequence hits a (sometimes not visible,
101+
# preceding test sequence again.
102+
# If one preceding test sequence hits a (sometimes not visible,
103103
# because the sql error code of the statement might be 0) bug
104104
# and these rules are ignored, a following test sequence might earn ugly
105105
# effects like failing 'sync_slave_with_master', crashes of the slave or

mysql-test/extra/rpl_tests/rpl_row_basic.test

+2-2
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ INSERT INTO t7 VALUES (1,3), (2,6), (3,9);
223223
SELECT * FROM t7 ORDER BY C1;
224224

225225
# since bug#31552/31609 idempotency is not default any longer. In order
226-
# the preceeding test INSERT INTO t7 to pass the mode is switched
226+
# the preceding test INSERT INTO t7 to pass the mode is switched
227227
# temprorarily
228228
set @@global.slave_exec_mode= 'IDEMPOTENT';
229229

@@ -262,7 +262,7 @@ INSERT INTO t8 VALUES (1,2,3), (2,4,6), (3,6,9);
262262
SELECT * FROM t8 ORDER BY a;
263263

264264
# since bug#31552/31609 idempotency is not default any longer. In order
265-
# the preceeding test INSERT INTO t8 to pass the mode is switched
265+
# the preceding test INSERT INTO t8 to pass the mode is switched
266266
# temprorarily
267267
set @@global.slave_exec_mode= 'IDEMPOTENT';
268268

mysql-test/include/wait_until_count_sessions.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# 1. We wait for $current_sessions <= $count_sessions because in the use case
1111
# with count_sessions.inc before and wait_until_count_sessions.inc after
1212
# the core of the test it could happen that the disconnects of sessions
13-
# belonging to the preceeding test are not finished.
13+
# belonging to the preceding test are not finished.
1414
# sessions at test begin($count_sessions) = m + n
1515
# sessions of the previous test which will be soon disconnected = n (n >= 0)
1616
# sessions at test end ($current sessions, assuming the test disconnects

mysql-test/mysql-test-run.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -6947,7 +6947,7 @@ ($)
69476947
start-dirty Only start the servers (without initialization) for
69486948
the first specified test case
69496949
user-args In combination with start* and no test name, drops
6950-
arguments to mysqld except those speficied with
6950+
arguments to mysqld except those specified with
69516951
--mysqld (if any)
69526952
wait-all If --start or --start-dirty option is used, wait for all
69536953
servers to exit before finishing the process

mysql-test/r/mysqld--help-notwin.result

+1-1
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ The following options may be given as the first argument:
759759
Optional semicolon-separated list of plugins to load,
760760
where each plugin is identified as name=library, where
761761
name is the plugin name and library is the plugin library
762-
in plugin_dir. This option adds to the list speficied by
762+
in plugin_dir. This option adds to the list specified by
763763
--plugin-load in an incremental way. Multiple
764764
--plugin-load-add are supported.
765765
-P, --port=# Port number to use for connection or 0 to default to,

mysql-test/r/mysqld--help-win.result

+1-1
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ The following options may be given as the first argument:
751751
Optional semicolon-separated list of plugins to load,
752752
where each plugin is identified as name=library, where
753753
name is the plugin name and library is the plugin library
754-
in plugin_dir. This option adds to the list speficied by
754+
in plugin_dir. This option adds to the list specified by
755755
--plugin-load in an incremental way. Multiple
756756
--plugin-load-add are supported.
757757
-P, --port=# Port number to use for connection or 0 to default to,

mysql-test/r/ps.result

+3-3
Original file line numberDiff line numberDiff line change
@@ -638,8 +638,8 @@ insert into t2 values ("1", "1", "sup", "0"), ("2", "1", "sup", "1"),
638638
("4", "1", "sup", "0");
639639
create table t3 (
640640
id int(11) not null default '0',
641-
preceeding_id int(11) not null default '0',
642-
primary key (id,preceeding_id)
641+
preceding_id int(11) not null default '0',
642+
primary key (id,preceding_id)
643643
);
644644
create table t4 (
645645
user_id varchar(50) not null,
@@ -650,7 +650,7 @@ insert into t4 values("nicke", "imp");
650650
prepare stmt from
651651
'select distinct t1.partner_id
652652
from t1 left join t3 on t1.id = t3.id
653-
left join t1 pp on pp.id = t3.preceeding_id
653+
left join t1 pp on pp.id = t3.preceding_id
654654
where
655655
exists (
656656
select *

mysql-test/suite/funcs_1/views/func_view.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ INSERT INTO t1_values SET
292292
# other interesting value
293293
# numbers -> 0
294294
# strings, blobs, binaries -> not full length of used data type, "exotic"
295-
# characters and preceeding and trailing spaces
295+
# characters and preceding and trailing spaces
296296
# FIXME enum, set ??
297297
INSERT INTO t1_values SET
298298
my_char_30 = ' ---äÖüß@µ*$-- ',

mysql-test/suite/funcs_1/views/views_master.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ let $message= Testcase 3.3.1.7 ;
545545
# view names are accepted, at creation time, alteration time,
546546
# and drop time.
547547
###############################################################################
548-
# Note(mleich): non-qualified view name means a view name without preceeding
548+
# Note(mleich): non-qualified view name means a view name without preceding
549549
# database name
550550
--disable_warnings
551551
DROP VIEW IF EXISTS v1 ;

mysql-test/suite/rpl/t/rpl_ddl.test

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
# sequences start.
1414
#
1515
# 2. Never use a test object, which was direct or indirect affected by a
16-
# preceeding test sequence again.
16+
# preceding test sequence again.
1717
# Except table d1.t1 where ONLY DML is allowed.
1818
#
19-
# If one preceeding test sequence hits a (sometimes not good visible,
19+
# If one preceding test sequence hits a (sometimes not good visible,
2020
# because the sql error code of the statement might be 0) bug
2121
# and these rules are ignored, a following test sequence might earn ugly
2222
# effects like failing 'sync_slave_with_master', crashes of the slave or

mysql-test/suite/rpl/t/rpl_row_basic_11bugs.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ INSERT INTO t1 VALUES (1,'master,slave'), (2,'master,slave');
240240
UPDATE t1 SET a = 5, b = 'slave' WHERE a = 1;
241241
SELECT * FROM t1 ORDER BY a;
242242
# since bug#31552/31609 idempotency is not default any longer. In
243-
# order for the preceeding test UPDATE t1 to pass, the mode is switched
243+
# order for the preceding test UPDATE t1 to pass, the mode is switched
244244
# temprorarily
245245
set @@global.slave_exec_mode= 'IDEMPOTENT';
246246
--echo **** On Master ****

mysql-test/suite/rpl_ndb/t/rpl_ndb_ddl.test

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
# sequences start.
1919
#
2020
# 2. Never use a test object, which was direct or indirect affected by a
21-
# preceeding test sequence again.
21+
# preceding test sequence again.
2222
# Except table d1.t1 where ONLY DML is allowed.
2323
#
24-
# If one preceeding test sequence hits a (sometimes not good visible,
24+
# If one preceding test sequence hits a (sometimes not good visible,
2525
# because the sql error code of the statement might be 0) bug
2626
# and these rules are ignored, a following test sequence might earn ugly
2727
# effects like failing 'sync_slave_with_master', crashes of the slave or

mysql-test/t/ps.test

+3-3
Original file line numberDiff line numberDiff line change
@@ -667,8 +667,8 @@ insert into t2 values ("1", "1", "sup", "0"), ("2", "1", "sup", "1"),
667667

668668
create table t3 (
669669
id int(11) not null default '0',
670-
preceeding_id int(11) not null default '0',
671-
primary key (id,preceeding_id)
670+
preceding_id int(11) not null default '0',
671+
primary key (id,preceding_id)
672672
);
673673

674674
create table t4 (
@@ -682,7 +682,7 @@ insert into t4 values("nicke", "imp");
682682
prepare stmt from
683683
'select distinct t1.partner_id
684684
from t1 left join t3 on t1.id = t3.id
685-
left join t1 pp on pp.id = t3.preceeding_id
685+
left join t1 pp on pp.id = t3.preceding_id
686686
where
687687
exists (
688688
select *

sql/abstract_query_plan.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ namespace AQP
335335
{
336336
/*
337337
It means that the decision on which access method to use
338-
will be taken late (as rows from the preceeding operation arrive).
338+
will be taken late (as rows from the preceding operation arrive).
339339
This operation is therefor not pushable.
340340
*/
341341
DBUG_PRINT("info",

sql/auth/password.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ void make_scrambled_password(char *to, const char *password)
269269

270270
/*
271271
Produce an obscure octet sequence from password and random
272-
string, recieved from the server. This sequence corresponds to the
272+
string, received from the server. This sequence corresponds to the
273273
password, but password can not be easily restored from it. The sequence
274274
is then sent to the server for validation. Trailing zero is not stored
275275
in the buf as it is not needed.
@@ -303,7 +303,7 @@ scramble(char *to, const char *message, const char *password)
303303

304304
/*
305305
Check that scrambled message corresponds to the password; the function
306-
is used by server to check that recieved reply is authentic.
306+
is used by server to check that received reply is authentic.
307307
This function does not check lengths of given strings: message must be
308308
null-terminated, reply and hash_stage2 must be at least SHA1_HASH_SIZE
309309
long (if not, something fishy is going on).

sql/ha_ndbcluster_binlog.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ ndb_binlog_close_shadow_table(NDB_SHARE *share)
281281
/*
282282
Open a shadow table for the table given in share.
283283
- The shadow table is (mainly) used when an event is
284-
recieved from the data nodes which need to be written
284+
received from the data nodes which need to be written
285285
to the binlog injector.
286286
*/
287287

sql/ha_ndbcluster_push.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1494,7 +1494,7 @@ ndb_pushed_builder_ctx::build_key(const AQP::Table_access* table,
14941494
if (m_join_scope.contain(referred_table_no))
14951495
{
14961496
// Locate the parent operation for this 'join_items[]'.
1497-
// May refer any of the preceeding parent tables
1497+
// May refer any of the preceding parent tables
14981498
const NdbQueryOperationDef* const parent_op= m_tables[referred_table_no].m_op;
14991499
DBUG_ASSERT(parent_op != NULL);
15001500

sql/handler.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ typedef struct st_ha_create_information
957957
For ALTER TABLE defaults to ROW_TYPE_NOT_USED (means "keep the current").
958958
959959
Can be changed either explicitly by the parser.
960-
If nothing speficied inherits the value of the original table (if present).
960+
If nothing specified inherits the value of the original table (if present).
961961
*/
962962
enum row_type row_type;
963963
uint null_bits; /* NULL bits at start of record */

sql/log_event.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -4973,7 +4973,7 @@ int Query_log_event::do_apply_event(Relay_log_info const *rli,
49734973
if ((error= rows_event_stmt_cleanup(const_cast<Relay_log_info*>(rli), thd)))
49744974
{
49754975
const_cast<Relay_log_info*>(rli)->report(ERROR_LEVEL, error,
4976-
"Error in cleaning up after an event preceeding the commit; "
4976+
"Error in cleaning up after an event preceding the commit; "
49774977
"the group log file/position: %s %s",
49784978
const_cast<Relay_log_info*>(rli)->get_group_master_log_name(),
49794979
llstr(const_cast<Relay_log_info*>(rli)->get_group_master_log_pos(),

sql/log_event.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -2411,7 +2411,7 @@ class Query_log_event: public Log_event
24112411
bool is_valid() const { return query != 0; }
24122412

24132413
/*
2414-
Returns number of bytes additionaly written to post header by derived
2414+
Returns number of bytes additionally written to post header by derived
24152415
events (so far it is only Execute_load_query event).
24162416
*/
24172417
virtual ulong get_post_header_size_for_derived() { return 0; }

sql/mysqld.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -5626,7 +5626,7 @@ struct my_option my_long_options[]=
56265626
"Optional semicolon-separated list of plugins to load, where each plugin is "
56275627
"identified as name=library, where name is the plugin name and library "
56285628
"is the plugin library in plugin_dir. This option adds to the list "
5629-
"speficied by --plugin-load in an incremental way. "
5629+
"specified by --plugin-load in an incremental way. "
56305630
"Multiple --plugin-load-add are supported.",
56315631
0, 0, 0,
56325632
GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},

sql/parse_tree_nodes.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,7 @@ class PT_option_value_following_option_type : public Parse_tree_node
12291229
{
12301230
/*
12311231
Not in trigger assigning value to new row,
1232-
and option_type preceeding local variable is illegal.
1232+
and option_type preceding local variable is illegal.
12331233
*/
12341234
error(pc, pos);
12351235
return true;

sql/rpl_utility.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1619,7 +1619,7 @@ bool Deferred_log_events::execute(Relay_log_info *rli)
16191619
void Deferred_log_events::rewind()
16201620
{
16211621
/*
1622-
Reset preceeding Query log event events which execution was
1622+
Reset preceding Query log event events which execution was
16231623
deferred because of slave side filtering.
16241624
*/
16251625
delete_container_pointers(m_array);

sql/sql_optimizer.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ void JOIN::test_skip_sort()
11451145
}
11461146
}
11471147
}
1148-
else if (order && // ORDER BY wo/ preceeding GROUP BY
1148+
else if (order && // ORDER BY wo/ preceding GROUP BY
11491149
(simple_order || skip_sort_order)) // which is possibly skippable
11501150
{
11511151
if (test_if_skip_sort_order(tab, order, m_select_limit, false,

sql/sql_prepare.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ When one supplies long data for a placeholder:
7373

7474
- Server gets the long data in pieces with command type
7575
'COM_STMT_SEND_LONG_DATA'.
76-
- The packet recieved will have the format as:
76+
- The packet received will have the format as:
7777
[COM_STMT_SEND_LONG_DATA:1][STMT_ID:4][parameter_number:2][data]
7878
- data from the packet is appended to the long data value buffer for this
7979
placeholder.

sql/sql_resolver.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2379,7 +2379,7 @@ find_order_in_list(THD *thd, Ref_ptr_array ref_pointer_array, TABLE_LIST *tables
23792379
Item *view_ref= NULL;
23802380
/*
23812381
If we have found field not by its alias in select list but by its
2382-
original field name, we should additionaly check if we have conflict
2382+
original field name, we should additionally check if we have conflict
23832383
for this name (in case if we would perform lookup in all tables).
23842384
*/
23852385
if (resolution == RESOLVED_BEHIND_ALIAS && !order_item->fixed &&

sql/sql_rewrite.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141

4242
/**
43-
Append a key/value pair to a string, with an optional preceeding comma.
43+
Append a key/value pair to a string, with an optional preceding comma.
4444
For numeric values.
4545

4646
@param str The string to append to
@@ -72,7 +72,7 @@ bool append_int(String *str, bool comma, const char *txt, size_t len,
7272

7373
/**
7474
Append a key/value pair to a string if the value is non-NULL,
75-
with an optional preceeding comma.
75+
with an optional preceding comma.
7676

7777
@param str The string to append to
7878
@param comma Prepend a comma?

sql/sql_yacc.yy

+2-2
Original file line numberDiff line numberDiff line change
@@ -13394,15 +13394,15 @@ opt_var_ident_type:
1339413394
| SESSION_SYM '.' { $$=OPT_SESSION; }
1339513395
;
1339613396

13397-
// Option values with preceeding option_type.
13397+
// Option values with preceding option_type.
1339813398
option_value_following_option_type:
1339913399
internal_variable_name equal set_expr_or_default
1340013400
{
1340113401
$$= NEW_PTN PT_option_value_following_option_type(@$, $1, $3);
1340213402
}
1340313403
;
1340413404

13405-
// Option values without preceeding option_type.
13405+
// Option values without preceding option_type.
1340613406
option_value_no_option_type:
1340713407
internal_variable_name /*$1*/
1340813408
equal /*$2*/

sql/tztime.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2013,7 +2013,7 @@ tz_load_from_open_tables(const String *tz_name, TABLE_LIST *tz_tables)
20132013

20142014
/*
20152015
At last we are doing the same thing for records in
2016-
mysql.time_zone_transition table. Here we additionaly need records
2016+
mysql.time_zone_transition table. Here we additionally need records
20172017
in ascending order by index scan also satisfies us.
20182018
*/
20192019
table= tz_tables->table;

storage/innobase/include/fsp0file.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ class Datafile
445445
byte* m_first_page;
446446

447447
protected:
448-
/** Last OS error recieved so it can be reported if needed. */
448+
/** Last OS error received so it can be reported if needed. */
449449
ulint m_last_os_error;
450450
};
451451

storage/myisam/mi_rnext.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
1+
/* Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
22

33
This program is free software; you can redistribute it and/or modify
44
it under the terms of the GNU General Public License as published by
@@ -63,7 +63,7 @@ int mi_rnext(MI_INFO *info, uchar *buf, int inx)
6363
Normally SQL layer would never request "search next" if
6464
"search first" failed. But HANDLER may do anything.
6565

66-
As mi_rnext() without preceeding mi_rkey()/mi_rfirst()
66+
As mi_rnext() without preceding mi_rkey()/mi_rfirst()
6767
equals to mi_rfirst(), we must restore original state
6868
as if failing mi_rfirst() was not called.
6969
*/

storage/ndb/include/ndbapi/NdbEventOperation.hpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*
2-
Copyright (C) 2003-2007 MySQL AB, 2009, 2010 Sun Microsystems, Inc.
3-
All rights reserved. Use is subject to license terms.
2+
Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
43

54
This program is free software; you can redistribute it and/or modify
65
it under the terms of the GNU General Public License as published by
@@ -65,7 +64,7 @@ class NdbEventOperationImpl;
6564
* - Event code does not check table schema version. Make sure to drop events
6665
* after table is dropped. Will be fixed in later
6766
* versions.
68-
* - If a node failure has occured not all events will be recieved
67+
* - If a node failure has occured not all events will be received
6968
* anymore. Drop NdbEventOperation and Create again after nodes are up
7069
* again. Will be fixed in later versions.
7170
*

0 commit comments

Comments
 (0)