mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
fix ans
This commit is contained in:
parent
407ca50be2
commit
f07df76c59
@ -56,9 +56,9 @@ std::string randomDate()
|
|||||||
int32_t year = rng() % 136 + 1970;
|
int32_t year = rng() % 136 + 1970;
|
||||||
int32_t month = rng() % 12 + 1;
|
int32_t month = rng() % 12 + 1;
|
||||||
int32_t day = rng() % 12 + 1;
|
int32_t day = rng() % 12 + 1;
|
||||||
char ans[13];
|
char answer[13];
|
||||||
sprintf(ans, "'%04u-%02u-%02u'", year, month, day);
|
sprintf(answer, "'%04u-%02u-%02u'", year, month, day);
|
||||||
return std::string(ans);
|
return std::string(answer);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string randomDatetime()
|
std::string randomDatetime()
|
||||||
@ -69,9 +69,9 @@ std::string randomDatetime()
|
|||||||
int32_t hours = rng() % 24;
|
int32_t hours = rng() % 24;
|
||||||
int32_t minutes = rng() % 60;
|
int32_t minutes = rng() % 60;
|
||||||
int32_t seconds = rng() % 60;
|
int32_t seconds = rng() % 60;
|
||||||
char ans[22];
|
char answer[22];
|
||||||
sprintf(
|
sprintf(
|
||||||
ans,
|
answer,
|
||||||
"'%04u-%02u-%02u %02u:%02u:%02u'",
|
"'%04u-%02u-%02u %02u:%02u:%02u'",
|
||||||
year,
|
year,
|
||||||
month,
|
month,
|
||||||
@ -79,7 +79,7 @@ std::string randomDatetime()
|
|||||||
hours,
|
hours,
|
||||||
minutes,
|
minutes,
|
||||||
seconds);
|
seconds);
|
||||||
return std::string(ans);
|
return std::string(answer);
|
||||||
}
|
}
|
||||||
TableAndColumn get_table_a_column(const std::string & c)
|
TableAndColumn get_table_a_column(const std::string & c)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user