summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster.cc
diff options
context:
space:
mode:
authortomas@poseidon.ndb.mysql.com <>2006-06-14 20:22:43 +0200
committertomas@poseidon.ndb.mysql.com <>2006-06-14 20:22:43 +0200
commitea6ed5ffa74598ee53965f082ad286d40a33e513 (patch)
tree7f353e9d51c6c7646c3704a943a685106d005979 /sql/ha_ndbcluster.cc
parent220345d3c8e783045e84774109606f9ca7b0b39e (diff)
parent47271c6bb13e45d674c58d6f954329dfda8366c5 (diff)
downloadmariadb-git-ea6ed5ffa74598ee53965f082ad286d40a33e513.tar.gz
Merge poseidon.ndb.mysql.com:/home/tomas/mysql-4.1
into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1-main
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 2618656193a..ffd5932a5c1 100644
--- a/sql/ha_ndbcluster.cc
+++ b/sql/ha_ndbcluster.cc
@@ -3053,7 +3053,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