summaryrefslogtreecommitdiff
path: root/libodbcpp/selectcommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libodbcpp/selectcommand.cpp')
-rw-r--r--libodbcpp/selectcommand.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libodbcpp/selectcommand.cpp b/libodbcpp/selectcommand.cpp
index 9a306c3..07b185e 100644
--- a/libodbcpp/selectcommand.cpp
+++ b/libodbcpp/selectcommand.cpp
@@ -130,6 +130,8 @@ ODBC::SelectCommand::execute()
case SQL_TYPE_TIMESTAMP:
ncol = *columns.insert(DB::ColumnPtr(new TimeStampColumn(this, colName, col))).first;
break;
+ case SQL_UNKNOWN_TYPE:
+ throw Error("Unknown column type");
default:
ncol = *columns.insert(DB::ColumnPtr(new CharArrayColumn(this, colName, col, bindSize))).first;
break;