mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
fix tests
This commit is contained in:
parent
699a3d9031
commit
9a9aebc644
@ -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;
|
||||
|
9
tests/queries/0_stateless/02002_system_table_with_tuple.sh
Executable file
9
tests/queries/0_stateless/02002_system_table_with_tuple.sh
Executable 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"
|
@ -1,2 +0,0 @@
|
||||
SELECT count() > 0 FROM system.tables WHERE database IN ('system', 'system')
|
||||
SETTINGS legacy_column_name_of_tuple_literal = 1;
|
Loading…
Reference in New Issue
Block a user