summaryrefslogtreecommitdiff
path: root/sql/ha_berkeley.cc
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2001-07-17 21:04:01 +0300
committermonty@hundin.mysql.fi <>2001-07-17 21:04:01 +0300
commitaecef7614e1c6d131417f2b21d2cddc9199c3ab2 (patch)
treef19e7e378a6170f04e3eebee868b77be238b17d7 /sql/ha_berkeley.cc
parent02f72a801b2f29d5c604da72bfcf53c61706ce6f (diff)
downloadmariadb-git-aecef7614e1c6d131417f2b21d2cddc9199c3ab2.tar.gz
Removed wrong warning from thr_lock
Fixed problem with UPDATE and BDB tables Fixed problem with GRANT FILE privilege on database level mysqld --warnings works now Fixed problem with SHOW OPEN TABLES when not using BDB Added some tests for ALTER TABLE to the test scripts
Diffstat (limited to 'sql/ha_berkeley.cc')
-rw-r--r--sql/ha_berkeley.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/ha_berkeley.cc b/sql/ha_berkeley.cc
index 32af39e4a0d..d2b3ef62865 100644
--- a/sql/ha_berkeley.cc
+++ b/sql/ha_berkeley.cc
@@ -453,9 +453,11 @@ int ha_berkeley::open(const char *name, int mode, uint test_if_locked)
if ((primary_key=table->primary_key) >= MAX_KEY)
{ // No primary key
primary_key=table->keys;
+ key_used_on_scan=MAX_KEY;
ref_length=hidden_primary_key=BDB_HIDDEN_PRIMARY_KEY_LENGTH;
}
- key_used_on_scan=primary_key;
+ else
+ key_used_on_scan=primary_key;
/* Need some extra memory in case of packed keys */
uint max_key_length= table->max_key_length + MAX_REF_PARTS*3;