mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
RecountRequest: fixed wrong formatting, when chunk is empty [#METR-13437]
This commit is contained in:
parent
96d8c7484a
commit
8f687c6042
@ -4,6 +4,7 @@
|
||||
#include <Yandex/DateLUT.h>
|
||||
|
||||
#include <mysqlxx/Date.h>
|
||||
#include <iomanip>
|
||||
|
||||
|
||||
namespace mysqlxx
|
||||
@ -177,12 +178,15 @@ public:
|
||||
|
||||
inline std::ostream & operator<< (std::ostream & ostr, const DateTime & datetime)
|
||||
{
|
||||
return ostr << datetime.year()
|
||||
<< '-' << (datetime.month() / 10) << (datetime.month() % 10)
|
||||
ostr << std::setfill('0') << std::setw(4) << datetime.year();
|
||||
|
||||
ostr << '-' << (datetime.month() / 10) << (datetime.month() % 10)
|
||||
<< '-' << (datetime.day() / 10) << (datetime.day() % 10)
|
||||
<< ' ' << (datetime.hour() / 10) << (datetime.hour() % 10)
|
||||
<< ':' << (datetime.minute() / 10) << (datetime.minute() % 10)
|
||||
<< ':' << (datetime.second() / 10) << (datetime.second() % 10);
|
||||
|
||||
return ostr;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user