silence warnings
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -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));
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user