summaryrefslogtreecommitdiff
path: root/storage/spider/spd_table.h
diff options
context:
space:
mode:
Diffstat (limited to 'storage/spider/spd_table.h')
-rw-r--r--storage/spider/spd_table.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/storage/spider/spd_table.h b/storage/spider/spd_table.h
index c3f1dc09db5..2b40fb33d5a 100644
--- a/storage/spider/spd_table.h
+++ b/storage/spider/spd_table.h
@@ -189,7 +189,8 @@ typedef struct st_spider_param_string_parse
{
DBUG_RETURN(print_param_error());
}
- else if (!sq || sq > dq)
+
+ if (dq && (!sq || sq > dq))
{
while (1)
{
@@ -227,7 +228,7 @@ typedef struct st_spider_param_string_parse
}
}
}
- else
+ else /* sq && (!dq || sq <= dq) */
{
while (1)
{