Code cleanup
This commit is contained in:
parent
39635eb212
commit
61213dbc7a
@ -89,14 +89,9 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list,
|
|||||||
*enclosed=ex->enclosed;
|
*enclosed=ex->enclosed;
|
||||||
bool is_fifo=0;
|
bool is_fifo=0;
|
||||||
LOAD_FILE_INFO lf_info;
|
LOAD_FILE_INFO lf_info;
|
||||||
char * db = table_list->db ? table_list->db : thd->db;
|
char *db = table_list->db; // This is never null
|
||||||
char * tdb= thd->db ? thd->db : db;
|
/* If no current database, use database where table is located */
|
||||||
/*
|
char *tdb= thd->db ? thd->db : db;
|
||||||
'tdb' can be NULL only if both table_list->db and thd->db are NULL
|
|
||||||
'db' itself can be NULL. but in that case it will generate
|
|
||||||
an error earlier open_ltable()).
|
|
||||||
*/
|
|
||||||
|
|
||||||
bool transactional_table, log_delayed;
|
bool transactional_table, log_delayed;
|
||||||
DBUG_ENTER("mysql_load");
|
DBUG_ENTER("mysql_load");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user