| 43 | |
| 44 | template <typename DataTypes> |
| 45 | String getExceptionMessagePrefix(const DataTypes & types) |
| 46 | { |
| 47 | WriteBufferFromOwnString res; |
| 48 | |
| 49 | bool first = true; |
| 50 | for (const auto & type : types) |
| 51 | { |
| 52 | if (!first) |
| 53 | res << ", "; |
| 54 | first = false; |
| 55 | |
| 56 | res << typeToString(type); |
| 57 | } |
| 58 | |
| 59 | return res.str(); |
| 60 | } |
| 61 | |
| 62 | template <LeastSupertypeOnError on_error, typename DataTypes> |
| 63 | DataTypePtr throwOrReturn(const DataTypes & types, std::string_view message_suffix, int error_code) |
no test coverage detected