mirror of
https://gitee.com/wangbin579/cetus.git
synced 2024-11-30 02:47:35 +08:00
Fix issues relate to the select partition table
This commit is contained in:
parent
33e259ee8a
commit
d8a2ae253d
@ -754,7 +754,10 @@ proxy_parse_query(network_mysqld_con *con)
|
||||
static int
|
||||
wrap_check_sql(network_mysqld_con *con, struct sql_context_t *sql_context)
|
||||
{
|
||||
if (con->srv->is_partition_mode && con->sharding_plan->table_type == GLOBAL_TABLE) {
|
||||
if (con->srv->is_partition_mode && sql_context->stmt_type != STMT_SELECT &&
|
||||
con->sharding_plan->table_type == GLOBAL_TABLE)
|
||||
{
|
||||
g_debug("don't change sql for: %s", con->orig_sql->str);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1103,6 +1103,7 @@ routing_select(sql_context_t *context, const sql_select_t *select,
|
||||
}
|
||||
}
|
||||
g_ptr_array_free(sharding_tables, TRUE);
|
||||
|
||||
return USE_ALL_SHARDINGS;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user