summaryrefslogtreecommitdiff
path: root/sql/key.cc
diff options
context:
space:
mode:
authorunknown <monty@mashka.mysql.fi>2002-07-23 02:08:48 +0300
committerunknown <monty@mashka.mysql.fi>2002-07-23 02:08:48 +0300
commit15013f97caac27f4e6f181e507668a5a623ca781 (patch)
tree93b9c6369d5c63c2009db5b84760aa1146a39993 /sql/key.cc
parenta9c52ff7172308af72f062a1cae86671cbb1ed7a (diff)
downloadmariadb-git-15013f97caac27f4e6f181e507668a5a623ca781.tar.gz
Fixed problem with auto_increment key as not first key part
Docs/manual.texi: Changelog
Diffstat (limited to 'sql/key.cc')
-rw-r--r--sql/key.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/key.cc b/sql/key.cc
index 80a33bc45d3..f2488ab74cb 100644
--- a/sql/key.cc
+++ b/sql/key.cc
@@ -59,7 +59,7 @@ int find_ref_key(TABLE *table,Field *field, uint *key_length)
{
if (key_part->offset == fieldpos)
return(i); /* Use this key */
- *key_length+=key_part->length;
+ *key_length+=key_part->store_length;
}
}
return(-1); /* No key is ok */