summaryrefslogtreecommitdiff
path: root/sql/opt_range.cc
diff options
context:
space:
mode:
authormiguel@hegel.local <>2004-05-05 02:59:17 -0300
committermiguel@hegel.local <>2004-05-05 02:59:17 -0300
commit8d1480f7c5535edc80c69cf8998538f01b058c6d (patch)
treeacaa682ecb4e7413232120ad5965cc6adc2f410c /sql/opt_range.cc
parentee627d251062c455ccd57dac28497d896c721a0e (diff)
downloadmariadb-git-8d1480f7c5535edc80c69cf8998538f01b058c6d.tar.gz
Windows fixes for VC++ compiler compability
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r--sql/opt_range.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc
index 3ef1323893f..1e7bf90738c 100644
--- a/sql/opt_range.cc
+++ b/sql/opt_range.cc
@@ -2612,12 +2612,12 @@ int QUICK_SELECT::get_next()
if (!(range= it++))
DBUG_RETURN(HA_ERR_END_OF_FILE); // All ranges used
- start_key.key= range->min_key;
+ start_key.key= (const byte*) range->min_key;
start_key.length= range->min_length;
start_key.flag= ((range->flag & NEAR_MIN) ? HA_READ_AFTER_KEY :
(range->flag & EQ_RANGE) ?
HA_READ_KEY_EXACT : HA_READ_KEY_OR_NEXT);
- end_key.key= range->max_key;
+ end_key.key= (const byte*) range->max_key;
end_key.length= range->max_length;
/*
We use READ_AFTER_KEY here because if we are reading on a key