1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

use handler no where clause

This commit is contained in:
Kentoku SHIBA
2014-03-25 05:24:16 +09:00
parent a99b54cf1f
commit f41f5f742f
6 changed files with 63 additions and 14 deletions

View File

@@ -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;