diff options
author | Sergei Golubchik <sergii@pisem.net> | 2012-12-16 21:45:45 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2012-12-16 21:45:45 +0100 |
commit | 4923d19b7c3c4c034f70ac1411837afa75c4b6ad (patch) | |
tree | e0442afcdf15886e0b192fd33125b56d45b8cdc4 /sql/sql_load.cc | |
parent | fe7c2aaeeab289b09645748e2006a7a9409fbbfa (diff) | |
download | mariadb-git-4923d19b7c3c4c034f70ac1411837afa75c4b6ad.tar.gz |
small code cleanup taken from MySQL 5.6
Diffstat (limited to 'sql/sql_load.cc')
-rw-r--r-- | sql/sql_load.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sql/sql_load.cc b/sql/sql_load.cc index e2c744401b9..daa9298d52d 100644 --- a/sql/sql_load.cc +++ b/sql/sql_load.cc @@ -487,10 +487,7 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list, table->file->ha_start_bulk_insert((ha_rows) 0); table->copy_blobs=1; - thd->abort_on_warning= (!ignore && - (thd->variables.sql_mode & - (MODE_STRICT_TRANS_TABLES | - MODE_STRICT_ALL_TABLES))); + thd->abort_on_warning= !ignore && thd->is_strict_mode(); thd_progress_init(thd, 2); if (ex->filetype == FILETYPE_XML) /* load xml */ |