fix tests

This commit is contained in:
Anton Popov 2021-08-04 20:38:10 +03:00
parent 699a3d9031
commit 9a9aebc644
3 changed files with 10 additions and 3 deletions

View File

@ -614,7 +614,7 @@ class MarkTupleLiteralsAsLegacyData
public:
using TypeToVisit = ASTLiteral;
void visit(ASTLiteral & literal, ASTPtr &)
static void visit(ASTLiteral & literal, ASTPtr &)
{
if (literal.value.getType() == Field::Types::Tuple)
literal.use_legacy_column_name_of_tuple = true;

View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh
$CLICKHOUSE_CLIENT -q "SELECT count() > 0 FROM system.tables \
WHERE database IN ('system', '$CLICKHOUSE_DATABASE') \
SETTINGS legacy_column_name_of_tuple_literal = 1"

View File

@ -1,2 +0,0 @@
SELECT count() > 0 FROM system.tables WHERE database IN ('system', 'system')
SETTINGS legacy_column_name_of_tuple_literal = 1;