silence warnings

This commit is contained in:
VaclavT 2022-03-06 23:24:22 +01:00
parent 1578c9889d
commit 056b45c831
3 changed files with 6 additions and 5 deletions

1
.gitignore vendored
View File

@ -7,3 +7,4 @@ localhost.session.sql
CMakeFiles
cmake-build-debug-coverage
.idea
.cache

View File

@ -7,12 +7,12 @@ namespace usql {
std::string column_type_name(const ColumnType type) {
if (type == ColumnType::integer_type) return "integer_type";
if (type == ColumnType::float_type) return "float_type";
if (type == ColumnType::float_type) return "float_type";
if (type == ColumnType::varchar_type) return "varchar_type";
if (type == ColumnType::date_type) return "date_type";
if (type == ColumnType::bool_type) return "bool_type";
if (type == ColumnType::date_type) return "date_type";
if (type == ColumnType::bool_type) return "bool_type";
throw Exception("invalid column type: " + (int)type);
throw Exception("invalid column type: " + std::to_string((int)type));
};

View File

@ -162,7 +162,7 @@ struct FunctionNode : Node {
if (type == Type::max) return "max";
if (type == Type::count) return "count";
throw Exception("invalid function: " + (int)type);
throw Exception("invalid function: " + std::to_string((int)type));
};