summaryrefslogtreecommitdiff
path: root/storage/myisam
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2018-06-20 16:36:46 +0400
committerAlexander Barkov <bar@mariadb.com>2018-06-20 16:36:46 +0400
commit170b43c1568ba6b9a772e8bdfbe90bd06cc2a345 (patch)
treefa141fa95239a850e1c4aef64c3015cc88b2b6c4 /storage/myisam
parent15b92915ed93661a56f40430204d18bf7b7cf1fc (diff)
downloadmariadb-git-170b43c1568ba6b9a772e8bdfbe90bd06cc2a345.tar.gz
MDEV-16534 PPC64: Unexpected error with a negative value into auto-increment columns in HEAP, MyISAM, ARIA
Diffstat (limited to 'storage/myisam')
-rw-r--r--storage/myisam/mi_key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/myisam/mi_key.c b/storage/myisam/mi_key.c
index 9a2526ad2cf..18ecc9e8ba3 100644
--- a/storage/myisam/mi_key.c
+++ b/storage/myisam/mi_key.c
@@ -553,7 +553,7 @@ ulonglong retrieve_auto_increment(MI_INFO *info,const uchar *record)
switch (keyseg->type) {
case HA_KEYTYPE_INT8:
- s_value= (longlong) *(char*)key;
+ s_value= (longlong) *(const signed char*) key;
break;
case HA_KEYTYPE_BINARY:
value=(ulonglong) *(uchar*) key;