Add a precompilation macro in the pg pipeline test code (#1368)
This commit is contained in:
parent
ff1aac37de
commit
de1bd805fc
|
@ -235,6 +235,7 @@ int main(int argc, char **argv)
|
||||||
std::promise<void> p1;
|
std::promise<void> p1;
|
||||||
std::future<void> f1 = p1.get_future();
|
std::future<void> f1 = p1.get_future();
|
||||||
app().setThreadNum(1);
|
app().setThreadNum(1);
|
||||||
|
#if LIBPQ_SUPPORTS_BATCH_MODE
|
||||||
app().createDbClient( //
|
app().createDbClient( //
|
||||||
"postgresql", // dbType
|
"postgresql", // dbType
|
||||||
"127.0.0.1", // host
|
"127.0.0.1", // host
|
||||||
|
@ -250,7 +251,7 @@ int main(int argc, char **argv)
|
||||||
10, // timeout
|
10, // timeout
|
||||||
true // autobatch
|
true // autobatch
|
||||||
);
|
);
|
||||||
|
#endif
|
||||||
std::thread thr([&]() {
|
std::thread thr([&]() {
|
||||||
app().getLoop()->queueInLoop([&]() { p1.set_value(); });
|
app().getLoop()->queueInLoop([&]() { p1.set_value(); });
|
||||||
app().run();
|
app().run();
|
||||||
|
|
Loading…
Reference in New Issue