silence warnings
This commit is contained in:
parent
1578c9889d
commit
056b45c831
|
|
@ -7,3 +7,4 @@ localhost.session.sql
|
|||
CMakeFiles
|
||||
cmake-build-debug-coverage
|
||||
.idea
|
||||
.cache
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue