Fixed error in prev. revisions [#CLICKHOUSE-2].

This commit is contained in:
Alexey Milovidov 2017-07-13 03:04:06 +03:00
parent 1cf669cc0a
commit e8170fde2a

View File

@ -45,6 +45,8 @@
#include <Columns/ColumnString.h>
#include <Common/NetException.h>
#include <common/readline_use.h>
#include <Functions/registerFunctions.h>
#include <AggregateFunctions/registerAggregateFunctions.h>
/// http://en.wikipedia.org/wiki/ANSI_escape_code
@ -260,6 +262,9 @@ private:
int mainImpl(const std::vector<std::string> & args)
{
registerFunctions();
registerAggregateFunctions();
/// Batch mode is enabled if one of the following is true:
/// - -e (--query) command line option is present.
/// The value of the option is used as the text of query (or of multiple queries).