From 15013f97caac27f4e6f181e507668a5a623ca781 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 23 Jul 2002 02:08:48 +0300 Subject: Fixed problem with auto_increment key as not first key part Docs/manual.texi: Changelog --- sql/key.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/key.cc') 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 */ -- cgit v1.2.1