summaryrefslogtreecommitdiff
path: root/sql/sql_load.cc
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2012-12-16 21:45:45 +0100
committerSergei Golubchik <sergii@pisem.net>2012-12-16 21:45:45 +0100
commit4923d19b7c3c4c034f70ac1411837afa75c4b6ad (patch)
treee0442afcdf15886e0b192fd33125b56d45b8cdc4 /sql/sql_load.cc
parentfe7c2aaeeab289b09645748e2006a7a9409fbbfa (diff)
downloadmariadb-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.cc5
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 */