summaryrefslogtreecommitdiff
path: root/sql/sql_load.cc
diff options
context:
space:
mode:
authorSinisa@sinisa.nasamreza.org <>2004-02-05 16:04:43 +0200
committerSinisa@sinisa.nasamreza.org <>2004-02-05 16:04:43 +0200
commitf54789bdfe74216eebf758e891c1bc699792cc47 (patch)
tree78ba6abdcc4189205dd63a20f97963b6f6dbc830 /sql/sql_load.cc
parent911a876999e85e63e26140d415e154a4a24222cd (diff)
downloadmariadb-git-f54789bdfe74216eebf758e891c1bc699792cc47.tar.gz
sql_load.cc:
Added a comment for already pushed bug fix
Diffstat (limited to 'sql/sql_load.cc')
-rw-r--r--sql/sql_load.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_load.cc b/sql/sql_load.cc
index 93dfcd84caf..3b8672188d4 100644
--- a/sql/sql_load.cc
+++ b/sql/sql_load.cc
@@ -93,6 +93,11 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list,
char *db = table_list->db; // This is never null
/* 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;
ulong skip_lines= ex->skip_lines;
DBUG_ENTER("mysql_load");