ClickHouse/tests/queries/0_stateless/01880_remote_ipv6.sql
2024-05-30 19:41:08 +00:00

24 lines
1.2 KiB
SQL

SET connections_with_failover_max_tries=0;
SELECT * FROM remote('[::1]', system.one) FORMAT Null;
SELECT * FROM remote('[::1]:9000', system.one) FORMAT Null;
SELECT * FROM remote('[::1', system.one) FORMAT Null; -- { serverError BAD_ARGUMENTS }
SELECT * FROM remote('::1]', system.one) FORMAT Null; -- { serverError BAD_ARGUMENTS }
SELECT * FROM remote('::1', system.one) FORMAT Null; -- { serverError BAD_ARGUMENTS }
SELECT * FROM remote('[::1][::1]', system.one) FORMAT Null; -- { serverError BAD_ARGUMENTS }
SELECT * FROM remote('[::1][::1', system.one) FORMAT Null; -- { serverError BAD_ARGUMENTS }
SELECT * FROM remote('[::1]::1]', system.one) FORMAT Null; -- { serverError BAD_ARGUMENTS }
SELECT * FROM remote('[::1]') FORMAT Null;
SELECT * FROM remote('[::1]:9000') FORMAT Null;
SELECT * FROM remote('[::1') FORMAT Null; -- { serverError BAD_ARGUMENTS }
SELECT * FROM remote('::1]') FORMAT Null; -- { serverError BAD_ARGUMENTS }
SELECT * FROM remote('::1') FORMAT Null; -- { serverError BAD_ARGUMENTS }
SELECT * FROM remote('[::1][::1]') FORMAT Null; -- { serverError BAD_ARGUMENTS }
SELECT * FROM remote('[::1][::1') FORMAT Null; -- { serverError BAD_ARGUMENTS }
SELECT * FROM remote('[::1]::1]') FORMAT Null; -- { serverError BAD_ARGUMENTS }