summaryrefslogtreecommitdiff
path: root/storage/spider/spd_db_mysql.cc
diff options
context:
space:
mode:
authorKentoku SHIBA <kentokushiba@gmail.com>2014-03-25 05:24:16 +0900
committerKentoku SHIBA <kentokushiba@gmail.com>2014-03-25 05:24:16 +0900
commitf41f5f742f67eca9a9c18c3954a175f1b049ed01 (patch)
tree0531e5e1002b04cc4bed78dcebecb5b97e71e650 /storage/spider/spd_db_mysql.cc
parenta99b54cf1ff885545f5cc895ac43a6affc2c08bd (diff)
downloadmariadb-git-f41f5f742f67eca9a9c18c3954a175f1b049ed01.tar.gz
use handler no where clause
Diffstat (limited to 'storage/spider/spd_db_mysql.cc')
-rw-r--r--storage/spider/spd_db_mysql.cc15
1 files changed, 11 insertions, 4 deletions
diff --git a/storage/spider/spd_db_mysql.cc b/storage/spider/spd_db_mysql.cc
index db6d9f933d2..5c175439a20 100644
--- a/storage/spider/spd_db_mysql.cc
+++ b/storage/spider/spd_db_mysql.cc
@@ -7119,10 +7119,17 @@ int spider_mysql_handler::append_condition_part(
}
ha_where_pos = str->length();
- if (sql_part2.length())
- {
- str->append(sql_part2);
- start_where = FALSE;
+ if (
+ spider->sql_command == SQLCOM_HA_READ ||
+ !spider->result_list.use_both_key
+ ) {
+ if (sql_part2.length())
+ {
+ str->append(sql_part2);
+ start_where = FALSE;
+ }
+ } else {
+ DBUG_RETURN(0);
}
}
break;