# HG changeset patch # User František Kučera # Date 1572305036 -3600 # Node ID 44db9e1e7c7f00cab3ec28060eaf85069f3c0e8b # Parent 76cbba3f7041dbac63793347bb734b594b2df10c implicit pass-through of all relations in the relpipe-in-sql mode (if called with no arguments) diff -r 76cbba3f7041 -r 44db9e1e7c7f src/relpipe-tr-sql.cpp --- a/src/relpipe-tr-sql.cpp Sat Oct 26 22:32:36 2019 +0200 +++ b/src/relpipe-tr-sql.cpp Tue Oct 29 00:23:56 2019 +0100 @@ -54,6 +54,7 @@ if (std::regex_match(cli.programName(), std::wregex(L"^(.*/)?relpipe-in-sql$"))) { // relpipe-in-sql: + if (cli.arguments().size() == 0) configuration.copyRelations.push_back({L".*", L"", false}); std::shared_ptr writer(writer::Factory::create(std::cout)); configuration.sqlBeforeRelational = isatty(fileno(stdin)) ? nullptr : &std::wcin; configuration.sqlAfterRelational = nullptr;