|
@@ -60,8 +60,8 @@ void check_where_clause(const vector<string> table_names, const json& j) {
|
|
auto col_def = get_select_column_define(table_names, curr_branch);
|
|
auto col_def = get_select_column_define(table_names, curr_branch);
|
|
if (!col_def.has_value()) {
|
|
if (!col_def.has_value()) {
|
|
throw std::runtime_error(
|
|
throw std::runtime_error(
|
|
- fmt::format("column `{}` not exists in `{}`\n",
|
|
|
|
- curr_branch["value"].dump(2),
|
|
|
|
|
|
+ fmt::format("column `{}` not exists in `{}`\n",
|
|
|
|
+ select_column_get_name(curr_branch),
|
|
fmt::join(table_names, ", ")));
|
|
fmt::join(table_names, ", ")));
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
@@ -82,7 +82,7 @@ void check_select_table(const vector<string> table_names,
|
|
if (!col_def.has_value()) {
|
|
if (!col_def.has_value()) {
|
|
throw std::runtime_error(
|
|
throw std::runtime_error(
|
|
fmt::format("column `{}` not exists in `{}`\n",
|
|
fmt::format("column `{}` not exists in `{}`\n",
|
|
- select_col["target"]["value"].dump(2),
|
|
|
|
|
|
+ select_column_get_name(select_col["target"]),
|
|
fmt::join(table_names, ", ")));
|
|
fmt::join(table_names, ", ")));
|
|
}
|
|
}
|
|
}
|
|
}
|