fix gcc warnings

This commit is contained in:
Alexander Tokmakov 2020-06-04 16:03:06 +03:00
parent 64c013610a
commit 4dae169216
3 changed files with 4 additions and 3 deletions

View File

@ -35,7 +35,7 @@ CassandraBlockInputStream::CassandraBlockInputStream(
cassandraCheck(cass_statement_set_paging_size(statement, max_block_size));
}
void CassandraBlockInputStream::insertValue(IColumn & column, ValueType type, const CassValue * cass_value) const
void CassandraBlockInputStream::insertValue(IColumn & column, ValueType type, const CassValue * cass_value)
{
switch (type)
{
@ -202,7 +202,7 @@ void CassandraBlockInputStream::assertTypes(const CassResultPtr & result)
size_t column_count = cass_result_column_count(result);
for (size_t i = 0; i < column_count; ++i)
{
CassValueType expected;
CassValueType expected = CASS_VALUE_TYPE_UNKNOWN;
String expected_text;
/// Cassandra does not support unsigned integers (cass_uint32_t is for Date)

View File

@ -30,7 +30,7 @@ private:
using ValueType = ExternalResultDescription::ValueType;
Block readImpl() override;
void insertValue(IColumn & column, ValueType type, const CassValue * cass_value) const;
static void insertValue(IColumn & column, ValueType type, const CassValue * cass_value);
void assertTypes(const CassResultPtr & result);
CassSessionShared session;

View File

@ -9,6 +9,7 @@
#include "ExternalQueryBuilder.h"
#include <Core/Block.h>
#include <Poco/Logger.h>
#include <mutex>
namespace DB
{