Merge branch 'master' of github.com:yandex/ClickHouse

This commit is contained in:
Alexey Milovidov 2017-01-31 00:40:11 +03:00
commit 379553a45c
5 changed files with 14 additions and 4 deletions

View File

@ -127,8 +127,8 @@ endif ()
include (cmake/test_compiler.cmake)
if (USE_STATIC_LIBRARIES AND HAVE_NO_PIE)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --no-pie")
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --no-pie")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${FLAG_NO_PIE}")
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${FLAG_NO_PIE}")
endif ()
set (SAN_FLAGS "-O3 -g -fno-omit-frame-pointer")

View File

@ -1,7 +1,8 @@
include (CheckCXXSourceCompiles)
set (TEST_FLAG "--no-pie")
set (TEST_FLAG "-no-pie")
set (CMAKE_REQUIRED_FLAGS "${TEST_FLAG}")
check_cxx_source_compiles("
int main() {
return 0;
@ -9,3 +10,7 @@ check_cxx_source_compiles("
" HAVE_NO_PIE)
set (CMAKE_REQUIRED_FLAGS "")
if (HAVE_NO_PIE)
set (FLAG_NO_PIE ${TEST_FLAG})
endif ()

View File

@ -193,7 +193,7 @@ static std::tuple<ASTPtr, BlockIO> executeQueryImpl(
res = interpreter->execute();
/// Delayed initialization of query streams (required for KILL QUERY purposes)
if (!internal)
if (!internal && nullptr == typeid_cast<const ASTShowProcesslistQuery *>(&*ast))
(*process_list_entry)->setQueryStreams(res);
/// Hold element of process list till end of query execution.

View File

@ -0,0 +1,5 @@
#!/bin/bash
clickhouse-client -q "SHOW PROCESSLIST" &>/dev/null
clickhouse-client -q "SHOW DATABASES" &>/dev/null
clickhouse-client -q "SHOW TABLES" &>/dev/null