mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
mysqlxx: development.
This commit is contained in:
parent
5f180b071c
commit
57d7e00376
@ -1,5 +1,6 @@
|
||||
#include <iostream>
|
||||
#include <mysqlxx/mysqlxx.h>
|
||||
#include <Yandex/time2str.h>
|
||||
|
||||
|
||||
int main(int argc, char ** argv)
|
||||
@ -19,7 +20,14 @@ int main(int argc, char ** argv)
|
||||
std::cerr << row[1] << ", " << row["d"]
|
||||
<< ", " << row[1].getDate()
|
||||
<< ", " << row[1].getDateTime()
|
||||
<< ", " << Yandex::Date2Str(row[1].getDate())
|
||||
<< ", " << Yandex::Time2Str(row[1].getDateTime())
|
||||
<< std::endl;
|
||||
|
||||
time_t t1 = row[0];
|
||||
time_t t2 = row[1];
|
||||
std::cerr << t1 << ", " << mysqlxx::DateTime(t1) << std::endl;
|
||||
std::cerr << t2 << ", " << mysqlxx::DateTime(t2) << std::endl;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user