diff options
author | unknown <igor@rurik.mysql.com> | 2003-10-01 23:37:05 -0700 |
---|---|---|
committer | unknown <igor@rurik.mysql.com> | 2003-10-01 23:37:05 -0700 |
commit | 06ecf87e15d8e8d7ae24aa23ccead4a2c4bbc78e (patch) | |
tree | b01319a4b1ce6d72b1867800eec320e03d3a9acd /sql | |
parent | 09e7be1d821831eee3bdeb0126a92aa7c23bed7d (diff) | |
download | mariadb-git-06ecf87e15d8e8d7ae24aa23ccead4a2c4bbc78e.tar.gz |
Many files:
Fix after manual merge
mysql-test/r/range.result:
Fix after manual merge
sql/handler.cc:
Fix after manual merge
sql/mysql_priv.h:
Fix after manual merge
sql/opt_range.cc:
Fix after manual merge
sql/set_var.cc:
Fix after manual merge
sql/sql_base.cc:
Fix after manual merge
sql/sql_parse.cc:
Fix after manual merge
Diffstat (limited to 'sql')
-rw-r--r-- | sql/handler.cc | 3 | ||||
-rw-r--r-- | sql/mysql_priv.h | 3 | ||||
-rw-r--r-- | sql/opt_range.cc | 8 | ||||
-rw-r--r-- | sql/set_var.cc | 3 | ||||
-rw-r--r-- | sql/sql_base.cc | 2 | ||||
-rw-r--r-- | sql/sql_parse.cc | 6 |
6 files changed, 17 insertions, 8 deletions
diff --git a/sql/handler.cc b/sql/handler.cc index 1d12171cbd0..1669bfa1f5e 100644 --- a/sql/handler.cc +++ b/sql/handler.cc @@ -1135,7 +1135,8 @@ int ha_key_cache(KEY_CACHE_VAR *key_cache) return 0; } - +int ha_resize_key_cache(KEY_CACHE_VAR *key_cache) +{ if (key_cache->cache) { pthread_mutex_lock(&LOCK_global_system_variables); diff --git a/sql/mysql_priv.h b/sql/mysql_priv.h index 4254d01f903..4bb86a8fac4 100644 --- a/sql/mysql_priv.h +++ b/sql/mysql_priv.h @@ -803,8 +803,7 @@ extern pthread_mutex_t LOCK_mysql_create_db,LOCK_Acl,LOCK_open, LOCK_error_log, LOCK_delayed_insert, LOCK_delayed_status, LOCK_delayed_create, LOCK_crypt, LOCK_timezone, LOCK_slave_list, LOCK_active_mi, LOCK_manager, - LOCK_global_system_variables, LOCK_user_conn; - LOCK_global_system_variables, LOCK_assign; + LOCK_global_system_variables, LOCK_user_conn, LOCK_assign; extern rw_lock_t LOCK_grant; extern pthread_cond_t COND_refresh, COND_thread_count, COND_manager; extern pthread_attr_t connection_attrib; diff --git a/sql/opt_range.cc b/sql/opt_range.cc index 7376c2e24bb..d9a8c822c5f 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -895,6 +895,12 @@ get_mm_parts(PARAM *param, Field *field, Item_func::Functype type, if (field->table != param->table) DBUG_RETURN(0); + if (type == Item_func::NE_FUNC) + { + ne_func= TRUE; + type= Item_func::LT_FUNC; + } + KEY_PART *key_part = param->key_parts; KEY_PART *end = param->key_parts_end; SEL_TREE *tree=0; @@ -934,7 +940,7 @@ get_mm_parts(PARAM *param, Field *field, Item_func::Functype type, SEL_TREE *tree2= get_mm_parts(param, field, Item_func::GT_FUNC, value, cmp_type); if (tree2) - tree= tree=tree_or(param,tree,tree2); + tree= tree_or(param,tree,tree2); } DBUG_RETURN(tree); } diff --git a/sql/set_var.cc b/sql/set_var.cc index f5f0b400793..df2164258d8 100644 --- a/sql/set_var.cc +++ b/sql/set_var.cc @@ -1597,7 +1597,8 @@ void sys_var_collation_server::set_default(THD *thd, enum_var_type type) static LEX_STRING default_key_cache_base= {(char *) DEFAULT_KEY_CACHE_NAME, 7}; -static KEY_CACHE_VAR zero_key_cache= { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; +static KEY_CACHE_VAR zero_key_cache= + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; static KEY_CACHE_VAR *get_key_cache(LEX_STRING *cache_name) { diff --git a/sql/sql_base.cc b/sql/sql_base.cc index 537368943db..2a9262e2646 100644 --- a/sql/sql_base.cc +++ b/sql/sql_base.cc @@ -867,7 +867,7 @@ TABLE *open_table(THD *thd,const char *db,const char *table_name, } key_cache_asmt->key_length= key_length; key_cache_asmt->key_cache= &dflt_key_cache_var; - VOID(hash_insert(&assign_cache, (byte *) key_cache_asmt)); + VOID(my_hash_insert(&assign_cache, (byte *) key_cache_asmt)); key_cache_asmt->requests++; } key_cache_asmt->to_reassign= 0; diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index b9e9077466b..500f6908b28 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -1906,7 +1906,8 @@ mysql_execute_command(THD *thd) case SQLCOM_ASSIGN_TO_KEYCACHE: { if (check_db_used(thd, tables) || - check_access(thd, INDEX_ACL, tables->db, &tables->grant.privilege)) + check_access(thd, INDEX_ACL, tables->db, + &tables->grant.privilege, 0, 0)) goto error; res = mysql_assign_to_keycache(thd, tables); break; @@ -1914,7 +1915,8 @@ mysql_execute_command(THD *thd) case SQLCOM_PRELOAD_KEYS: { if (check_db_used(thd, tables) || - check_access(thd, INDEX_ACL, tables->db, &tables->grant.privilege,0,0)) + check_access(thd, INDEX_ACL, tables->db, + &tables->grant.privilege, 0, 0)) goto error; res = mysql_preload_keys(thd, tables); break; |