diff options
author | unknown <monty@hundin.mysql.fi> | 2001-11-07 00:13:29 +0200 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2001-11-07 00:13:29 +0200 |
commit | 8547d05ccc9c00450ae8b226cb38f53f90162958 (patch) | |
tree | 64754ff9c9c94a31f64a96e1a5e3ae60a4a93253 /sql | |
parent | 9f29fd68bdc85997e5cef96eaa6b1a0758303349 (diff) | |
download | mariadb-git-8547d05ccc9c00450ae8b226cb38f53f90162958.tar.gz |
Portability fix
Cleanup typos (like SKIPP -> SKIP)
BUILD/compile-alpha-cxx:
Fix when using InnoDB
Docs/manual.texi:
FreeBSD note
client/mysqlmanager-pwgen.c:
Portability fix
include/my_base.h:
Cleanup typos
isam/_dynrec.c:
Cleanup typos
isam/_packrec.c:
Cleanup typos
isam/create.c:
Cleanup typos
isam/pack_isam.c:
Cleanup typos
isam/test1.c:
Cleanup typos
isam/test2.c:
Cleanup typos
libmysql/manager.c:
Portability fix
myisam/ft_eval.c:
Cleanup typos
myisam/ft_test1.c:
Cleanup typos
myisam/mi_create.c:
Cleanup typos
myisam/mi_dynrec.c:
Cleanup typos
myisam/mi_packrec.c:
Cleanup typos
myisam/mi_test1.c:
Cleanup typos
myisam/mi_test2.c:
Cleanup typos
myisam/myisampack.c:
Cleanup typos
sql/field.cc:
Cleanup typos
sql/field.h:
Cleanup typos
sql/filesort.cc:
Cleanup typos
sql/gen_lex_hash.cc:
Cleanup typos
sql/ha_isam.cc:
Cleanup typos
sql/ha_myisam.cc:
Cleanup typos
sql/handler.h:
Cleanup typos
sql/hash_filo.h:
Cleanup typos
sql/item.h:
Cleanup typos
sql/item_cmpfunc.cc:
Cleanup typos
sql/item_strfunc.cc:
Cleanup typos
sql/key.cc:
Cleanup typos
sql/mysqld.cc:
Cleanup typos
sql/opt_range.cc:
Cleanup typos
sql/opt_sum.cc:
Cleanup typos
sql/sql_acl.cc:
Cleanup typos
sql/sql_class.h:
Cleanup typos
sql/sql_insert.cc:
Cleanup typos
sql/sql_lex.cc:
Cleanup typos
sql/sql_list.h:
Cleanup typos
sql/sql_load.cc:
Cleanup typos
sql/sql_parse.cc:
Cleanup typos
sql/sql_rename.cc:
Cleanup typos
sql/sql_select.cc:
Cleanup typos
sql/sql_string.cc:
Cleanup typos
sql/sql_yacc.yy:
Fix bug in last changeset
sql/structs.h:
Cleanup typos
sql/table.cc:
Cleanup typos
sql/time.cc:
Cleanup typos
sql/unireg.h:
Cleanup typos
Diffstat (limited to 'sql')
-rw-r--r-- | sql/field.cc | 10 | ||||
-rw-r--r-- | sql/field.h | 2 | ||||
-rw-r--r-- | sql/filesort.cc | 6 | ||||
-rw-r--r-- | sql/gen_lex_hash.cc | 2 | ||||
-rw-r--r-- | sql/ha_isam.cc | 8 | ||||
-rw-r--r-- | sql/ha_myisam.cc | 8 | ||||
-rw-r--r-- | sql/handler.h | 2 | ||||
-rw-r--r-- | sql/hash_filo.h | 2 | ||||
-rw-r--r-- | sql/item.h | 2 | ||||
-rw-r--r-- | sql/item_cmpfunc.cc | 2 | ||||
-rw-r--r-- | sql/item_strfunc.cc | 10 | ||||
-rw-r--r-- | sql/key.cc | 2 | ||||
-rw-r--r-- | sql/mysqld.cc | 4 | ||||
-rw-r--r-- | sql/opt_range.cc | 4 | ||||
-rw-r--r-- | sql/opt_sum.cc | 2 | ||||
-rw-r--r-- | sql/sql_acl.cc | 2 | ||||
-rw-r--r-- | sql/sql_class.h | 2 | ||||
-rw-r--r-- | sql/sql_insert.cc | 4 | ||||
-rw-r--r-- | sql/sql_lex.cc | 2 | ||||
-rw-r--r-- | sql/sql_list.h | 2 | ||||
-rw-r--r-- | sql/sql_load.cc | 10 | ||||
-rw-r--r-- | sql/sql_parse.cc | 24 | ||||
-rw-r--r-- | sql/sql_rename.cc | 2 | ||||
-rw-r--r-- | sql/sql_select.cc | 18 | ||||
-rw-r--r-- | sql/sql_string.cc | 4 | ||||
-rw-r--r-- | sql/sql_yacc.yy | 4 | ||||
-rw-r--r-- | sql/structs.h | 2 | ||||
-rw-r--r-- | sql/table.cc | 2 | ||||
-rw-r--r-- | sql/time.cc | 10 | ||||
-rw-r--r-- | sql/unireg.h | 2 |
30 files changed, 78 insertions, 78 deletions
diff --git a/sql/field.cc b/sql/field.cc index df6c2a80424..2f98d2e0fe8 100644 --- a/sql/field.cc +++ b/sql/field.cc @@ -63,7 +63,7 @@ const char field_separator=','; *****************************************************************************/ /* - ** Calculate length of number and it's parts + ** Calculate length of number and its parts ** Increment cuted_fields if wrong number */ @@ -215,7 +215,7 @@ static bool test_if_real(const char *str,int length) /**************************************************************************** ** Functions for the base classes -** This is a unpacked number. +** This is an unpacked number. ****************************************************************************/ Field::Field(char *ptr_arg,uint32 length_arg,uchar *null_ptr_arg, @@ -368,7 +368,7 @@ bool Field::optimize_range() /**************************************************************************** ** Functions for the Field_decimal class -** This is a unpacked number. +** This is an unpacked number. ****************************************************************************/ void @@ -410,7 +410,7 @@ void Field_decimal::store(const char *from,uint len) { fyllchar = '0'; if (from != end) - while (*from == '0' && from != end-1) // Skipp prezero + while (*from == '0' && from != end-1) // Skip prezero from++; } else @@ -464,7 +464,7 @@ void Field_decimal::store(const char *from,uint len) if (tmp_dec--) { *to++ ='.'; - if (decstr.nr_dec) from++; // Skipp '.' + if (decstr.nr_dec) from++; // Skip '.' for (i=(int) min(decstr.nr_dec,tmp_dec) ; i-- > 0 ; ) *to++ = *from++; for (i=(int) (tmp_dec-min(decstr.nr_dec,tmp_dec)) ; i-- > 0 ; ) *to++ = '0'; } diff --git a/sql/field.h b/sql/field.h index 777e4388850..e2af9853512 100644 --- a/sql/field.h +++ b/sql/field.h @@ -31,7 +31,7 @@ struct st_cache_field; void field_conv(Field *to,Field *from); class Field { - Field(const Item &); /* Prevent use of theese */ + Field(const Item &); /* Prevent use of these */ void operator=(Field &); public: static void *operator new(size_t size) {return (void*) sql_alloc((uint) size); } diff --git a/sql/filesort.cc b/sql/filesort.cc index fe0ab603214..16eedb94c59 100644 --- a/sql/filesort.cc +++ b/sql/filesort.cc @@ -25,7 +25,7 @@ #include "sql_sort.h" #ifndef THREAD -#define SKIPP_DBUG_IN_FILESORT +#define SKIP_DBUG_IN_FILESORT #endif /* How to write record_ref. */ @@ -77,7 +77,7 @@ ha_rows filesort(TABLE *table, SORT_FIELD *sortorder, uint s_length, SORTPARAM param; DBUG_ENTER("filesort"); DBUG_EXECUTE("info",TEST_filesort(sortorder,s_length,special);); -#ifdef SKIPP_DBUG_IN_FILESORT +#ifdef SKIP_DBUG_IN_FILESORT DBUG_PUSH(""); /* No DBUG here */ #endif @@ -229,7 +229,7 @@ ha_rows filesort(TABLE *table, SORT_FIELD *sortorder, uint s_length, else statistic_add(filesort_rows, records, &LOCK_status); *examined_rows= param.examined_rows; -#ifdef SKIPP_DBUG_IN_FILESORT +#ifdef SKIP_DBUG_IN_FILESORT DBUG_POP(); /* Ok to DBUG */ #endif DBUG_PRINT("exit",("records: %ld",records)); diff --git a/sql/gen_lex_hash.cc b/sql/gen_lex_hash.cc index 2358dde7b6d..4e5d6fb3111 100644 --- a/sql/gen_lex_hash.cc +++ b/sql/gen_lex_hash.cc @@ -20,7 +20,7 @@ #include <my_sys.h> #include <m_string.h> #ifndef __GNU_LIBRARY__ -#define __GNU_LIBRARY__ // Skipp warnings in getopt.h +#define __GNU_LIBRARY__ // Skip warnings in getopt.h #endif #include <getopt.h> #include "mysql_version.h" diff --git a/sql/ha_isam.cc b/sql/ha_isam.cc index 2451b8bdaec..1a950ce0a9d 100644 --- a/sql/ha_isam.cc +++ b/sql/ha_isam.cc @@ -316,7 +316,7 @@ int ha_isam::create(const char *name, register TABLE *form, { /* skip null fields */ if (!(temp_length= (*field)->pack_length())) - continue; /* Skipp null-fields */ + continue; /* Skip null-fields */ if (! found || fieldpos < minpos || (fieldpos == minpos && temp_length < length)) { @@ -344,15 +344,15 @@ int ha_isam::create(const char *name, register TABLE *form, else if (!(options & HA_OPTION_PACK_RECORD)) recinfo_pos->base.type= (int) FIELD_NORMAL; else if (found->zero_pack()) - recinfo_pos->base.type= (int) FIELD_SKIPP_ZERO; + recinfo_pos->base.type= (int) FIELD_SKIP_ZERO; else recinfo_pos->base.type= (int) ((length <= 3 || (found->flags & ZEROFILL_FLAG)) ? FIELD_NORMAL : found->type() == FIELD_TYPE_STRING || found->type() == FIELD_TYPE_VAR_STRING ? - FIELD_SKIPP_ENDSPACE : - FIELD_SKIPP_PRESPACE); + FIELD_SKIP_ENDSPACE : + FIELD_SKIP_PRESPACE); recinfo_pos++ ->base.length=(uint16) length; recpos=minpos+length; DBUG_PRINT("loop",("length: %d type: %d", diff --git a/sql/ha_myisam.cc b/sql/ha_myisam.cc index 63a39465cfa..fafa4fe07d6 100644 --- a/sql/ha_myisam.cc +++ b/sql/ha_myisam.cc @@ -1066,7 +1066,7 @@ int ha_myisam::create(const char *name, register TABLE *form, { /* skip null fields */ if (!(temp_length= (*field)->pack_length())) - continue; /* Skipp null-fields */ + continue; /* Skip null-fields */ if (! found || fieldpos < minpos || (fieldpos == minpos && temp_length < length)) { @@ -1092,15 +1092,15 @@ int ha_myisam::create(const char *name, register TABLE *form, else if (!(options & HA_OPTION_PACK_RECORD)) recinfo_pos->type= (int) FIELD_NORMAL; else if (found->zero_pack()) - recinfo_pos->type= (int) FIELD_SKIPP_ZERO; + recinfo_pos->type= (int) FIELD_SKIP_ZERO; else recinfo_pos->type= (int) ((length <= 3 || (found->flags & ZEROFILL_FLAG)) ? FIELD_NORMAL : found->type() == FIELD_TYPE_STRING || found->type() == FIELD_TYPE_VAR_STRING ? - FIELD_SKIPP_ENDSPACE : - FIELD_SKIPP_PRESPACE); + FIELD_SKIP_ENDSPACE : + FIELD_SKIP_PRESPACE); if (found->null_ptr) { recinfo_pos->null_bit=found->null_bit; diff --git a/sql/handler.h b/sql/handler.h index e36a81cf7c7..b18118bb114 100644 --- a/sql/handler.h +++ b/sql/handler.h @@ -95,7 +95,7 @@ /* Error on write which is recoverable (Key exist) */ -#define HA_WRITE_SKIPP 121 /* Duplicate key on write */ +#define HA_WRITE_SKIP 121 /* Duplicate key on write */ #define HA_READ_CHECK 123 /* Update with is recoverable */ #define HA_CANT_DO_THAT 131 /* Databasehandler can't do it */ diff --git a/sql/hash_filo.h b/sql/hash_filo.h index 157c2739add..69301479ec7 100644 --- a/sql/hash_filo.h +++ b/sql/hash_filo.h @@ -24,7 +24,7 @@ #define HASH_FILO_H #ifdef __GNUC__ -#pragma interface /* gcc class implementation */ +#pragma interface /* gcc class interface */ #endif class hash_filo_element diff --git a/sql/item.h b/sql/item.h index 1bcbc4c7f0f..a52860528f1 100644 --- a/sql/item.h +++ b/sql/item.h @@ -23,7 +23,7 @@ struct st_table_list; void item_init(void); /* Init item functions */ class Item { - Item(const Item &); /* Prevent use of theese */ + Item(const Item &); /* Prevent use of these */ void operator=(Item &); public: static void *operator new(size_t size) {return (void*) sql_alloc((uint) size); } diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc index f825b4960c5..8d2a4d491c4 100644 --- a/sql/item_cmpfunc.cc +++ b/sql/item_cmpfunc.cc @@ -955,7 +955,7 @@ void Item_func_in::fix_length_and_dec() for (uint i=0 ; i < arg_count ; i++) { array->set(j,args[i]); - if (!args[i]->null_value) // Skipp NULL values + if (!args[i]->null_value) // Skip NULL values j++; } if ((array->used_count=j)) diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc index 355f28d5432..6413170198d 100644 --- a/sql/item_strfunc.cc +++ b/sql/item_strfunc.cc @@ -231,7 +231,7 @@ String *Item_func_concat_ws::val_str(String *str) for (i++; i < arg_count ; i++) { if (!(res2= args[i]->val_str(use_as_buff)) || !res2->length()) - continue; // Skipp NULL and empty string + continue; // Skip NULL and empty string if (res->length() + sep_str->length() + res2->length() > max_allowed_packet) @@ -520,7 +520,7 @@ String *Item_func_insert::val_str(String *str) } #endif if (start > res->length()+1) - return res; // Wrong param; skipp insert + return res; // Wrong param; skip insert if (length > res->length()-start) length=res->length()-start; if (res->length() - length + res2->length() > max_allowed_packet) @@ -1097,7 +1097,7 @@ void Item_func_soundex::fix_length_and_dec() /* If alpha, map input letter to soundex code. - If not alpha and remove_garbage is set then skipp to next char + If not alpha and remove_garbage is set then skip to next char else return 0 */ @@ -1129,7 +1129,7 @@ String *Item_func_soundex::val_str(String *str) char *to= (char *) str_value.ptr(); char *from= (char *) res->ptr(), *end=from+res->length(); - while (from != end && isspace(*from)) // Skipp pre-space + while (from != end && isspace(*from)) // Skip pre-space from++; /* purecov: inspected */ if (from == end) return &empty_string; // No alpha characters. @@ -1304,7 +1304,7 @@ String *Item_func_make_set::val_str(String *str) if (bits & 1) { String *res= (*ptr)->val_str(str); - if (res) // Skipp nulls + if (res) // Skip nulls { if (!first_found) { // First argument diff --git a/sql/key.cc b/sql/key.cc index 2c7c9361eb3..b6fb260bf36 100644 --- a/sql/key.cc +++ b/sql/key.cc @@ -96,7 +96,7 @@ void key_copy(byte *key,TABLE *table,uint idx,uint key_length) length=min(key_length,key_part->length); set_if_smaller(blob_length,length); int2store(key,(uint) blob_length); - key+=2; // Skipp length info + key+=2; // Skip length info memcpy(key,pos,blob_length); } else diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 45812754cad..020917982b6 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -3988,7 +3988,7 @@ static void get_options(int argc,char **argv) exit(1); } } - // Skipp empty arguments (from shell) + // Skip empty arguments (from shell) while (argc != optind && !argv[optind][0]) optind++; if (argc != optind) @@ -4589,7 +4589,7 @@ static ulong find_bit_type(const char *x, TYPELIB *bit_lib) if (!*(end=strcend(pos,','))) /* Let end point at fieldend */ { while (end > pos && end[-1] == ' ') - end--; /* Skipp end-space */ + end--; /* Skip end-space */ found_end=1; } found_int=0; found_count=0; diff --git a/sql/opt_range.cc b/sql/opt_range.cc index b06356bfe8b..3849159ca39 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -537,7 +537,7 @@ static int sel_cmp(Field *field, char *a,char *b,uint8 a_flag,uint8 b_flag) } if (*a) goto end; // NULL where equal - a++; b++; // Skipp NULL marker + a++; b++; // Skip NULL marker } cmp=field->key_cmp((byte*) a,(byte*) b); if (cmp) return cmp < 0 ? -1 : 1; // The values differed @@ -1105,7 +1105,7 @@ static bool like_range(const char *ptr,uint ptr_length,char escape, { if (*ptr == escape && ptr+1 != end) { - ptr++; // Skipp escape + ptr++; // Skip escape *min_str++= *max_str++ = *ptr; continue; } diff --git a/sql/opt_sum.cc b/sql/opt_sum.cc index 182fb6cf362..3dd13cbebb9 100644 --- a/sql/opt_sum.cc +++ b/sql/opt_sum.cc @@ -291,7 +291,7 @@ bool part_of_cond(COND *cond,Field *field) static bool find_range_key(TABLE_REF *ref, Field* field, COND *cond) { if (!(field->flags & PART_KEY_FLAG)) - return 0; // Not part of a key. Skipp it + return 0; // Not part of a key. Skip it TABLE *table=field->table; if (table->file->option_flag() & HA_WRONG_ASCII_ORDER) diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index 888ccf7b482..b0a5696515c 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -781,7 +781,7 @@ int wild_case_compare(const char *str,const char *wildstr) if (! *wildstr ) DBUG_RETURN (*str != 0); if (*wildstr++ == wild_one) { - if (! *str++) DBUG_RETURN (1); /* One char; skipp */ + if (! *str++) DBUG_RETURN (1); /* One char; skip */ } else { /* Found '*' */ diff --git a/sql/sql_class.h b/sql/sql_class.h index e4756284bf5..53e20b3b6d2 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -224,7 +224,7 @@ public: /**************************************************************************** -** every connection is handle by a thread with a THD +** every connection is handled by a thread with a THD ****************************************************************************/ class delayed_insert; diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index 7a89a3d38dd..150ed503078 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -368,12 +368,12 @@ int write_record(TABLE *table,COPY_INFO *info) { while ((error=table->file->write_row(table->record[0]))) { - if (error != HA_WRITE_SKIPP) + if (error != HA_WRITE_SKIP) goto err; uint key_nr; if ((int) (key_nr = table->file->get_dup_key(error)) < 0) { - error=HA_WRITE_SKIPP; /* Database can't find key */ + error=HA_WRITE_SKIP; /* Database can't find key */ goto err; } /* diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc index befae9103f4..67f0d05d2d3 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -616,7 +616,7 @@ int yylex(void *arg) return(IDENT); case STATE_USER_VARIABLE_DELIMITER: - lex->tok_start=lex->ptr; // Skipp first ` + lex->tok_start=lex->ptr; // Skip first ` #ifdef USE_MB if (use_mb(default_charset_info)) { diff --git a/sql/sql_list.h b/sql/sql_list.h index 1e1b3a612e6..66311b03435 100644 --- a/sql/sql_list.h +++ b/sql/sql_list.h @@ -258,7 +258,7 @@ public: /* -** An simple intrusive list with automaticly removes element from list +** A simple intrusive list which automaticly removes element from list ** on delete (for THD element) */ diff --git a/sql/sql_load.cc b/sql/sql_load.cc index 28140121491..3d79ee6682f 100644 --- a/sql/sql_load.cc +++ b/sql/sql_load.cc @@ -375,7 +375,7 @@ read_fixed_length(THD *thd,COPY_INFO &info,TABLE *table,List<Item> &fields, DBUG_RETURN(1); if (table->next_number_field) table->next_number_field->reset(); // Clear for next record - if (read_info.next_line()) // Skipp to next line + if (read_info.next_line()) // Skip to next line break; if (read_info.line_cuted) thd->cuted_fields++; /* To long row */ @@ -451,7 +451,7 @@ read_sep_field(THD *thd,COPY_INFO &info,TABLE *table, DBUG_RETURN(1); if (table->next_number_field) table->next_number_field->reset(); // Clear for next record - if (read_info.next_line()) // Skipp to next line + if (read_info.next_line()) // Skip to next line break; if (read_info.line_cuted) thd->cuted_fields++; /* To long row */ @@ -602,10 +602,10 @@ int READ_INFO::read_field() if (found_end_of_line) return 1; // One have to call next_line - /* Skipp until we find 'line_start' */ + /* Skip until we find 'line_start' */ if (start_of_line) - { // Skipp until line_start + { // Skip until line_start start_of_line=0; if (find_start_of_fields()) return 1; @@ -757,7 +757,7 @@ int READ_INFO::read_fixed_length() return 1; // One have to call next_line if (start_of_line) - { // Skipp until line_start + { // Skip until line_start start_of_line=0; if (find_start_of_fields()) return 1; diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index b60549d072a..d6c9437e93c 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -774,7 +774,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd, break; case COM_REGISTER_SLAVE: { - if(register_slave(thd, (uchar*)packet, packet_length)) + if (register_slave(thd, (uchar*)packet, packet_length)) send_error(&thd->net); else send_ok(&thd->net); @@ -791,7 +791,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd, *tbl_name++ = 0; memcpy(tbl_name, packet + db_len + 2, tbl_len); tbl_name[tbl_len] = 0; - if(mysql_table_dump(thd, db, tbl_name, -1)) + if (mysql_table_dump(thd, db, tbl_name, -1)) send_error(&thd->net); // dump to NET break; @@ -928,7 +928,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd, case COM_BINLOG_DUMP: { slow_command = TRUE; - if(check_access(thd, FILE_ACL, any_db)) + if (check_access(thd, FILE_ACL, any_db)) break; mysql_log.write(thd,command, 0); @@ -1177,21 +1177,21 @@ mysql_execute_command(void) } case SQLCOM_SHOW_NEW_MASTER: { - if(check_access(thd, FILE_ACL, any_db)) + if (check_access(thd, FILE_ACL, any_db)) goto error; res = show_new_master(thd); break; } case SQLCOM_SHOW_SLAVE_HOSTS: { - if(check_access(thd, FILE_ACL, any_db)) + if (check_access(thd, FILE_ACL, any_db)) goto error; res = show_slave_hosts(thd); break; } case SQLCOM_SHOW_BINLOG_EVENTS: { - if(check_access(thd, FILE_ACL, any_db)) + if (check_access(thd, FILE_ACL, any_db)) goto error; res = show_binlog_events(thd); break; @@ -1217,7 +1217,7 @@ mysql_execute_command(void) } case SQLCOM_CHANGE_MASTER: { - if(check_access(thd, PROCESS_ACL, any_db)) + if (check_access(thd, PROCESS_ACL, any_db)) goto error; res = change_master(thd); break; @@ -1238,7 +1238,7 @@ mysql_execute_command(void) } case SQLCOM_LOAD_MASTER_DATA: // sync with master - if(check_process_priv(thd)) + if (check_process_priv(thd)) goto error; res = load_master_data(thd); break; @@ -2052,9 +2052,9 @@ mysql_execute_command(void) GRANT_ACL), tables)) goto error; - res = mysql_table_grant(thd,tables,lex->users_list, lex->columns, - lex->grant, lex->sql_command == SQLCOM_REVOKE); - if (!res) + if (!(res = mysql_table_grant(thd,tables,lex->users_list, lex->columns, + lex->grant, + lex->sql_command == SQLCOM_REVOKE))) { mysql_update_log.write(thd, thd->query, thd->query_length); if (mysql_bin_log.is_open()) @@ -2783,7 +2783,7 @@ static void remove_escape(char *name) } #endif if (*name == '\\' && name[1]) - name++; // Skipp '\\' + name++; // Skip '\\' *to++= *name; } *to=0; diff --git a/sql/sql_rename.cc b/sql/sql_rename.cc index 7a6652953cc..38d861d03d6 100644 --- a/sql/sql_rename.cc +++ b/sql/sql_rename.cc @@ -80,7 +80,7 @@ end: for (table=table_list ; table->next != ren_table ; table=table->next->next) ; - table=table->next->next; // Skipp error table + table=table->next->next; // Skip error table /* Revert to old names */ rename_tables(thd, table, 1); /* Note that lock_table == 0 here, so the unlock loop will work */ diff --git a/sql/sql_select.cc b/sql/sql_select.cc index fea3dd7728b..acb29743356 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -172,7 +172,7 @@ int handle_select(THD *thd, LEX *lex, select_result *result) /***************************************************************************** ** check fields, find best join, do the select and output fields. -** mysql_select assumes that all tables are allready opened +** mysql_select assumes that all tables are already opened *****************************************************************************/ int @@ -514,7 +514,7 @@ mysql_select(THD *thd,TABLE_LIST *tables,List<Item> &fields,COND *conds, (!group && join.tmp_table_param.sum_func_count)) order=0; - // Can't use sort on head table if using cache + // Can't use sort on head table if using row cache if (join.full_join) { if (group) @@ -1172,7 +1172,7 @@ merge_key_fields(KEY_FIELD *start,KEY_FIELD *new_fields,KEY_FIELD *end, if (start == new_fields) return start; // Impossible or if (new_fields == end) - return start; // No new fields, skipp all + return start; // No new fields, skip all KEY_FIELD *first_free=new_fields; @@ -1234,7 +1234,7 @@ add_key_field(KEY_FIELD **key_fields,uint and_level, // Don't remove column IS NULL on a LEFT JOIN table if (!eq_func || !value || value->type() != Item::NULL_ITEM || !field->table->maybe_null || field->null_ptr) - return; // Not a key. Skipp it + return; // Not a key. Skip it exists_optimize=1; } else @@ -1489,7 +1489,7 @@ add_ft_keys(DYNAMIC_ARRAY *keyuse_array, } } - if(!cond_func) + if (!cond_func) return; KEYUSE keyuse; @@ -2158,7 +2158,7 @@ get_best_combination(JOIN *join) { while (keyuse->keypart != i || ((~used_tables) & keyuse->used_tables)) - keyuse++; /* Skipp other parts */ + keyuse++; /* Skip other parts */ uint maybe_null= test(keyinfo->key_part[i].null_bit); j->ref.items[i]=keyuse->val; // Save for cond removal @@ -2811,7 +2811,7 @@ remove_const(JOIN *join,ORDER *first_order, COND *cond, bool *simple_order) else if (!(order_tables & not_const_tables)) { DBUG_PRINT("info",("removing: %s", order->item[0]->full_name())); - continue; // skipp const item + continue; // skip const item } else { @@ -3670,7 +3670,7 @@ create_tmp_table(THD *thd,TMP_TABLE_PARAM *param,List<Item> &fields, (field->type() == FIELD_TYPE_STRING || field->type() == FIELD_TYPE_VAR_STRING) && length >= 10 && blob_count) - recinfo->type=FIELD_SKIPP_ENDSPACE; + recinfo->type=FIELD_SKIP_ENDSPACE; else recinfo->type=FIELD_NORMAL; if (!--hidden_field_count) @@ -4665,7 +4665,7 @@ join_ft_read_first(JOIN_TAB *tab) int error; TABLE *table= tab->table; -#if 0 +#if NOT_USED_YET if (cp_buffer_from_ref(&tab->ref)) // as ft-key doesn't use store_key's return -1; // see also FT_SELECT::init() #endif diff --git a/sql/sql_string.cc b/sql/sql_string.cc index 5aecb3bc158..046346c1e03 100644 --- a/sql/sql_string.cc +++ b/sql/sql_string.cc @@ -577,7 +577,7 @@ int wild_case_compare(const char *str,const char *str_end, { do { - if (str == str_end) // Skipp one char if possible + if (str == str_end) // Skip one char if possible return (result); INC_PTR(str,str_end); } while (++wildstr < wildend && *wildstr == wild_one); @@ -696,7 +696,7 @@ int wild_compare(const char *str,const char *str_end, { do { - if (str == str_end) // Skipp one char if possible + if (str == str_end) // Skip one char if possible return (result); str++; } while (*++wildstr == wild_one && wildstr != wildend); diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy index 6e4ad1918db..bf7167ce391 100644 --- a/sql/sql_yacc.yy +++ b/sql/sql_yacc.yy @@ -3210,7 +3210,7 @@ handler: if (!add_table_to_list($2,0,0)) YYABORT; } - | HANDLER_SYM table_ident READ_SYM handler_read_or_scan + | HANDLER_SYM table_ident READ_SYM { LEX *lex=Lex; lex->sql_command = SQLCOM_HA_READ; @@ -3218,7 +3218,7 @@ handler: if (!add_table_to_list($2,0,0)) YYABORT; } - where_clause limit_clause { } + handler_read_or_scan where_clause limit_clause { } handler_read_or_scan: handler_scan_function { Lex->backup_dir= 0; } diff --git a/sql/structs.h b/sql/structs.h index 439384c7191..780057061c3 100644 --- a/sql/structs.h +++ b/sql/structs.h @@ -170,7 +170,7 @@ typedef struct st_lex_user { #define REG_MAY_BE_UPDATED 64 #define REG_AUTO_UPDATE 64 /* Used in D-forms for scroll-tables */ #define REG_OVERWRITE 128 -#define REG_SKIPP_DUPP 256 +#define REG_SKIP_DUP 256 /* Bits in form->status */ #define STATUS_NO_RECORD (1+2) /* Record isn't usably */ diff --git a/sql/table.cc b/sql/table.cc index 927119f45de..eb6d8fbb9cd 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -824,7 +824,7 @@ fix_type_pointers(const char ***array, TYPELIB *point_to_type, uint types, *type_name= '\0'; /* End string */ ptr=type_name; } - ptr+=2; /* Skipp end mark and last 0 */ + ptr+=2; /* Skip end mark and last 0 */ } else ptr++; diff --git a/sql/time.cc b/sql/time.cc index e4565bdeea7..4d194a94b8e 100644 --- a/sql/time.cc +++ b/sql/time.cc @@ -128,7 +128,7 @@ long calc_daynr(uint year,uint month,uint day) DBUG_ENTER("calc_daynr"); if (year == 0 && month == 0 && day == 0) - DBUG_RETURN(0); /* Skipp errors */ + DBUG_RETURN(0); /* Skip errors */ if (year < 200) { if ((year=year+1900) < 1900+YY_PART_YEAR) @@ -434,7 +434,7 @@ str_to_TIME(const char *str, uint length, TIME *l_time,bool fuzzy_date) DBUG_ENTER("str_to_TIME"); DBUG_PRINT("enter",("str: %.*s",length,str)); - for (; str != end && !isdigit(*str) ; str++) ; // Skipp garbage + for (; str != end && !isdigit(*str) ; str++) ; // Skip garbage if (str == end) DBUG_RETURN(TIMESTAMP_NONE); /* @@ -594,7 +594,7 @@ bool str_to_time(const char *str,uint length,TIME *l_time) date[0]=value; state=1; // Assume next is hours found_days=1; - str++; // Skipp space; + str++; // Skip space; } else if ((end-str) > 1 && *str == ':' && isdigit(str[1])) { @@ -602,7 +602,7 @@ bool str_to_time(const char *str,uint length,TIME *l_time) date[1]=value; state=2; found_hours=1; - str++; // skipp ':' + str++; // skip ':' } else { @@ -623,7 +623,7 @@ bool str_to_time(const char *str,uint length,TIME *l_time) date[state++]=value; if (state == 4 || (end-str) < 2 || *str != ':' || !isdigit(str[1])) break; - str++; // Skipp ':' + str++; // Skip ':' } if (state != 4) diff --git a/sql/unireg.h b/sql/unireg.h index 159832295fd..abba79cbda5 100644 --- a/sql/unireg.h +++ b/sql/unireg.h @@ -85,7 +85,7 @@ #define MYF_RW MYF(MY_WME+MY_NABP) /* Vid my_read & my_write */ #define SPECIAL_USE_LOCKS 1 /* Lock used databases */ -#define SPECIAL_NO_NEW_FUNC 2 /* Skipp new functions */ +#define SPECIAL_NO_NEW_FUNC 2 /* Skip new functions */ #define SPECIAL_NEW_FUNC 4 /* New nonstandard functions */ #define SPECIAL_WAIT_IF_LOCKED 8 /* Wait if locked database */ #define SPECIAL_SAME_DB_NAME 16 /* form name = file name */ |