diff options
author | unknown <monty@mashka.mysql.fi> | 2002-07-23 02:08:48 +0300 |
---|---|---|
committer | unknown <monty@mashka.mysql.fi> | 2002-07-23 02:08:48 +0300 |
commit | 3277051942353daaeb0506f24715ef2089f3c0c6 (patch) | |
tree | 93b9c6369d5c63c2009db5b84760aa1146a39993 /sql/key.cc | |
parent | 2d54c9d85bc6c4fda032bda831686d1cf3e31a3b (diff) | |
download | mariadb-git-3277051942353daaeb0506f24715ef2089f3c0c6.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.cc | 2 |
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 */ |