summaryrefslogtreecommitdiff
path: root/sql/structs.h
diff options
context:
space:
mode:
authorramil/ram@mysql.com/ramil.myoffice.izhnet.ru <>2007-10-26 15:37:38 +0500
committerramil/ram@mysql.com/ramil.myoffice.izhnet.ru <>2007-10-26 15:37:38 +0500
commit8ec674dd0c42714214d9b9b1a10ae214fcc77103 (patch)
treebee3dd52db241dee91e3a66776658a52e07176bd /sql/structs.h
parent3494f691c1da55fc37b2b64476ba1c03dde76100 (diff)
downloadmariadb-git-8ec674dd0c42714214d9b9b1a10ae214fcc77103.tar.gz
Fix for bug #31137: Assertion failed: primary_key_no == -1 || primary_key_no == 0,
file .\ha_innodb. Problem: if a partial unique key followed by a non-partial one we declare the second one as a primary key. Fix: sort non-partial unique keys before partial ones.
Diffstat (limited to 'sql/structs.h')
-rw-r--r--sql/structs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/structs.h b/sql/structs.h
index 28bdd8c1519..bc373fe4b52 100644
--- a/sql/structs.h
+++ b/sql/structs.h
@@ -87,7 +87,7 @@ typedef struct st_key_part_info { /* Info about a key part */
typedef struct st_key {
uint key_length; /* Tot length of key */
- uint flags; /* dupp key and pack flags */
+ ulong flags; /* dupp key and pack flags */
uint key_parts; /* How many key_parts */
uint extra_length;
uint usable_key_parts; /* Should normally be = key_parts */