diff --git a/libs/libmysqlxx/include/mysqlxx/Date.h b/libs/libmysqlxx/include/mysqlxx/Date.h index 4363ac0b53e..0bbd0dd9873 100644 --- a/libs/libmysqlxx/include/mysqlxx/Date.h +++ b/libs/libmysqlxx/include/mysqlxx/Date.h @@ -98,11 +98,16 @@ public: return Yandex::DateLUTSingleton::instance().makeDate(m_year, m_month, m_day); } - operator Yandex::DayNum_t() const + Yandex::DayNum_t getDayNum() const { return Yandex::DateLUTSingleton::instance().makeDayNum(m_year, m_month, m_day); } + operator Yandex::DayNum_t() const + { + return getDayNum(); + } + unsigned short year() const { return m_year; } unsigned char month() const { return m_month; } unsigned char day() const { return m_day; }