use currentDatabase().

This commit is contained in:
root 2019-12-14 13:28:16 +08:00
parent 63aaf64e93
commit 22bc508dc4

View File

@ -4,6 +4,6 @@ CREATE TABLE test_count (`pt` Date) ENGINE = MergeTree PARTITION BY pt ORDER BY
INSERT INTO test_count values ('2019-12-12');
SELECT count(1) FROM remote('127.0.0.{1,1,2}',default,test_count);
SELECT count(1) FROM remote('127.0.0.{1,1,2}', currentDatabase(), test_count);
DROP TABLE test_count;