summaryrefslogtreecommitdiff
path: root/libmysqlpp/selectcommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libmysqlpp/selectcommand.cpp')
-rw-r--r--libmysqlpp/selectcommand.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libmysqlpp/selectcommand.cpp b/libmysqlpp/selectcommand.cpp
index e6bf789..b361fb1 100644
--- a/libmysqlpp/selectcommand.cpp
+++ b/libmysqlpp/selectcommand.cpp
@@ -44,6 +44,9 @@ MySQL::SelectCommand::execute()
case MYSQL_TYPE_DATETIME:
columns.insert(boost::shared_ptr<ColumnBase>(new Column<MYSQL_TIME, MYSQL_TYPE_DATETIME>(fieldDefs[i].name, i, &fields[i])));
break;
+ case MYSQL_TYPE_TIME:
+ columns.insert(boost::shared_ptr<ColumnBase>(new Column<MYSQL_TIME, MYSQL_TYPE_TIME>(fieldDefs[i].name, i, &fields[i])));
+ break;
case MYSQL_TYPE_STRING:
case MYSQL_TYPE_VAR_STRING:
columns.insert(boost::shared_ptr<ColumnBase>(new StringColumn(fieldDefs[i].name, i, &fields[i], fieldDefs[i].length)));
@@ -56,7 +59,6 @@ MySQL::SelectCommand::execute()
case MYSQL_TYPE_SET:
case MYSQL_TYPE_ENUM:
case MYSQL_TYPE_GEOMETRY:
- case MYSQL_TYPE_TIME:
default:
mysql_free_result(prepare_meta_result);
throw Error("Unexpected type");