summaryrefslogtreecommitdiff
path: root/sql/ha_berkeley.cc
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-11-09 16:28:20 -0800
committerunknown <jimw@mysql.com>2005-11-09 16:28:20 -0800
commitb8864dcde66ae93d3afb95bcbb081c70afa5d90f (patch)
treef2346e07093923f4bdab03cdcf24f1337735db03 /sql/ha_berkeley.cc
parentc4239fee2178566283c28e098909774f429489cb (diff)
downloadmariadb-git-b8864dcde66ae93d3afb95bcbb081c70afa5d90f.tar.gz
Avoid setting DB_NOOVERWRITE flag on hidden primary keys in tables
using the BDB storage engine. (Bug #14809) sql/ha_berkeley.cc: Don't set DB_NOOVERWRITE on hidden primary key, since we already guarantee uniqueness in how these keys are generated.
Diffstat (limited to 'sql/ha_berkeley.cc')
-rw-r--r--sql/ha_berkeley.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ha_berkeley.cc b/sql/ha_berkeley.cc
index eeca6cb1657..d585a410e72 100644
--- a/sql/ha_berkeley.cc
+++ b/sql/ha_berkeley.cc
@@ -665,7 +665,7 @@ int ha_berkeley::open(const char *name, int mode, uint test_if_locked)
/* Open other keys; These are part of the share structure */
key_file[primary_key]=file;
- key_type[primary_key]=DB_NOOVERWRITE;
+ key_type[primary_key]= hidden_primary_key ? 0 : DB_NOOVERWRITE;
DB **ptr=key_file;
for (uint i=0, used_keys=0; i < table_share->keys ; i++, ptr++)