diff options
author | unknown <monty@mashka.mysql.fi> | 2003-02-07 15:47:24 +0200 |
---|---|---|
committer | unknown <monty@mashka.mysql.fi> | 2003-02-07 15:47:24 +0200 |
commit | d66e60248c9f448b9d251358e0acfd97d1e3f84e (patch) | |
tree | 0661c54a51aa711947173e8a8e27e2e46cfa971c /sql/sql_handler.cc | |
parent | 2ff82a7b152181a49814f5ea125ca8dc6551fbdd (diff) | |
download | mariadb-git-d66e60248c9f448b9d251358e0acfd97d1e3f84e.tar.gz |
After merge fixes & remove compiler warnings
Added lengths for all MYSQL_FIELD string parameters
Changed field length to 2 byte in .frm files
configure.in:
After merge fixes
include/ft_global.h:
Fixed copyright
include/my_sys.h:
Remove compiler warnings
include/mysql.h:
Added lengths for all MYSQL_FIELD string parameters
include/mysql_com.h:
Remove compiler warning
myisam/ft_boolean_search.c:
Removed compiler warnings
myisam/ft_dump.c:
Removed compiler warnings
myisam/ft_stopwords.c:
Copy file from MySQL 4.0
myisam/mi_delete.c:
Fixed compiler warning
myisam/sort.c:
Indentation changes
myisam/sp_test.c:
Remove compiler warnings
mysql-test/r/func_group.result:
After merge fixes
mysql-test/r/group_by.result:
After merge fixes
mysql-test/r/rpl_insert_id.result:
After merge fixes
mysql-test/r/rpl_master_pos_wait.result:
After merge fixes
mysql-test/t/rpl000009.test:
After merge fixes
mysql-test/t/rpl_insert_id.test:
After merge fixes
mysql-test/t/subselect.test:
After merge fixes
sql/item_cmpfunc.cc:
After merge fixes
sql/item_cmpfunc.h:
After merge fixes
sql/item_func.cc:
After merge fixes
sql/item_func.h:
After merge fixes
sql/item_strfunc.cc:
After merge fixes
sql/item_strfunc.h:
After merge fixes
sql/log.cc:
After merge fixes
sql/mysql_priv.h:
After merge fixes
sql/mysqld.cc:
After merge fixes
sql/sql_db.cc:
After merge fixes
sql/sql_handler.cc:
After merge fixes
sql/sql_parse.cc:
After merge fixes
sql/sql_show.cc:
After merge fixes
sql/sql_udf.cc:
After merge fixes
sql/table.cc:
Changed field length to 2 byte in .frm files
sql/unireg.cc:
Changed field length to 2 byte in .frm files
Diffstat (limited to 'sql/sql_handler.cc')
-rw-r--r-- | sql/sql_handler.cc | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/sql/sql_handler.cc b/sql/sql_handler.cc index 7683abb41fe..954dceff303 100644 --- a/sql/sql_handler.cc +++ b/sql/sql_handler.cc @@ -158,9 +158,11 @@ int mysql_ha_read(THD *thd, TABLE_LIST *tables, if (!lock) goto err0; // mysql_lock_tables() printed error message already - /* In ::external_lock InnoDB resets the fields which tell it that - the handle is used in the HANDLER interface. Tell it again that - we are using it for HANDLER. */ + /* + In ::external_lock InnoDB resets the fields which tell it that + the handle is used in the HANDLER interface. Tell it again that + we are using it for HANDLER. + */ table->file->init_table_handle_for_HANDLER(); @@ -273,23 +275,15 @@ err0: return -1; } -/************************************************************************** - Monty: It could easily happen, that the following service functions are - already defined somewhere in the code, but I failed to find them. - If this is the case, just say a word and I'll use old functions here. -**************************************************************************/ - -/* - Note: this function differs from find_locked_table() because we're looking - here for alias, not real table name -*/ static TABLE **find_table_ptr_by_name(THD *thd, const char *db, - const char *alias) + const char *table_name, bool is_alias) { int dblen; TABLE **ptr; + if (!db || ! *db) + db= thd->db ? thd->db : ""; dblen=strlen(db)+1; ptr= &(thd->handler_tables); @@ -299,7 +293,6 @@ static TABLE **find_table_ptr_by_name(THD *thd, const char *db, !my_strcasecmp(system_charset_info, (is_alias ? table->table_name : table->real_name), table_name)) - !my_strcasecmp(system_charset_info,table->table_name,alias)) break; ptr= &(table->next); } |