silence warnings
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -7,3 +7,4 @@ localhost.session.sql
|
|||||||
CMakeFiles
|
CMakeFiles
|
||||||
cmake-build-debug-coverage
|
cmake-build-debug-coverage
|
||||||
.idea
|
.idea
|
||||||
|
.cache
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ namespace usql {
|
|||||||
if (type == ColumnType::date_type) return "date_type";
|
if (type == ColumnType::date_type) return "date_type";
|
||||||
if (type == ColumnType::bool_type) return "bool_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));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
2
parser.h
2
parser.h
@@ -162,7 +162,7 @@ struct FunctionNode : Node {
|
|||||||
if (type == Type::max) return "max";
|
if (type == Type::max) return "max";
|
||||||
if (type == Type::count) return "count";
|
if (type == Type::count) return "count";
|
||||||
|
|
||||||
throw Exception("invalid function: " + (int)type);
|
throw Exception("invalid function: " + std::to_string((int)type));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user