mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 18:45:10 +01:00
Correctly set MySQL time_type for Poco::Data::Date.
This commit is contained in:
parent
a1792fa833
commit
e94075c023
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user