diff options
author | monty@mashka.mysql.fi <> | 2002-07-23 02:08:48 +0300 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2002-07-23 02:08:48 +0300 |
commit | f93cb632028d14aae970a98ad0caf734b40009b5 (patch) | |
tree | 93b9c6369d5c63c2009db5b84760aa1146a39993 /sql/key.cc | |
parent | d909f4a5512fae74725141c66af0cc9a5e4a52e7 (diff) | |
download | mariadb-git-f93cb632028d14aae970a98ad0caf734b40009b5.tar.gz |
Fixed problem with auto_increment key as not first key part
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 */ |