Skip to content

Commit 3297249

Browse files
committed
#38 Interprete all unknown or unsupported types as String
1 parent 32364ca commit 3297249

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

driver/result_set.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ void assignTypeInfo(const TypeAst & ast, ColumnInfo * info)
9595
}
9696
else
9797
{
98-
throw std::runtime_error("compound types doesn't supported: " + info->type);
98+
// Interprete all unsupported types as String.
99+
info->type_without_parameters = "String";
99100
}
100101
}
101102

@@ -128,7 +129,8 @@ void ResultSet::init(Statement * statement_, IResultMutatorPtr mutator_)
128129
}
129130
else
130131
{
131-
throw std::runtime_error("can't pase name of type: " + columns_info[i].type);
132+
// Interprete all unknown types as String.
133+
columns_info[i].type_without_parameters = "String";
132134
}
133135
}
134136
}

0 commit comments

Comments
 (0)