summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster.cc
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com>2006-06-14 20:22:03 +0200
committerunknown <tomas@poseidon.ndb.mysql.com>2006-06-14 20:22:03 +0200
commitf3a286cc5466f04c4c72a81f15f80c2f03a175a3 (patch)
tree2c716c80f856ccc65d248e462542cfab25cc82a4 /sql/ha_ndbcluster.cc
parentca1fd91f160a812f5da149cfb9a8065cf78bf8ad (diff)
downloadmariadb-git-f3a286cc5466f04c4c72a81f15f80c2f03a175a3.tar.gz
Bug #19493 NDB does not ignore duplicate keys when using LOAD DATA LOCAL
- correction of backport error
Diffstat (limited to 'sql/ha_ndbcluster.cc')
-rw-r--r--sql/ha_ndbcluster.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc
index 5be09f697a0..e3dca77ba2f 100644
--- a/sql/ha_ndbcluster.cc
+++ b/sql/ha_ndbcluster.cc
@@ -3001,7 +3001,7 @@ void ha_ndbcluster::start_bulk_insert(ha_rows rows)
DBUG_PRINT("enter", ("rows: %d", (int)rows));
m_rows_inserted= (ha_rows) 0;
- if (!m_use_write && m_ignore_dup_key)
+ if (m_ignore_dup_key && table->primary_key != MAX_KEY)
{
/*
compare if expression with that in write_row