Correctly set MySQL time_type for Poco::Data::Date.

This commit is contained in:
latitude37s 2013-12-19 16:50:38 +00:00
parent a1792fa833
commit e94075c023

View File

@ -210,6 +210,8 @@ void Binder::bind(std::size_t pos, const Date& val, Direction dir)
mt.month = val.month();
mt.day = val.day();
mt.time_type = MYSQL_TIMESTAMP_DATE;
_dates.push_back(new MYSQL_TIME(mt));
realBind(pos, MYSQL_TYPE_DATE, _dates.back(), sizeof(MYSQL_TIME));