diff options
author | unknown <ram@gw.mysql.r18.ru> | 2004-11-02 19:48:37 +0400 |
---|---|---|
committer | unknown <ram@gw.mysql.r18.ru> | 2004-11-02 19:48:37 +0400 |
commit | c940b515d46247a5b1107bedf30d074721ef2dc9 (patch) | |
tree | 9eb804ab66052766d5f9678fe5de9c51e8c85203 /sql/ha_ndbcluster.cc | |
parent | 03a91f9bb77100a377c1a60e005957ac779815b7 (diff) | |
download | mariadb-git-c940b515d46247a5b1107bedf30d074721ef2dc9.tar.gz |
A fix (bug #6331: INSERT IGNORE .. SELECT breaks subsequent inserts).
Diffstat (limited to 'sql/ha_ndbcluster.cc')
-rw-r--r-- | sql/ha_ndbcluster.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc index 838cf69855a..4f0bd1f99ec 100644 --- a/sql/ha_ndbcluster.cc +++ b/sql/ha_ndbcluster.cc @@ -2650,7 +2650,8 @@ int ha_ndbcluster::extra(enum ha_extra_function operation) m_use_write= TRUE; } else { - m_ignore_dup_key_not_supported= TRUE; + if (table->keys) + m_ignore_dup_key_not_supported= TRUE; } break; case HA_EXTRA_NO_IGNORE_DUP_KEY: |