Skip to content

Commit

Permalink
Merge pull request #2294 from dolthub/tim/skipped-bats-for-multidb-bug
Browse files Browse the repository at this point in the history
Skipped bats for --multi-db-dir bug
  • Loading branch information
timsehn committed Oct 26, 2021
2 parents ce7db6b + 0850338 commit 4298ac7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions integration-tests/bats/sql-multi-db.bats
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,15 @@ seed_repos_with_tables_with_use_statements() {
[ "$status" -eq 0 ]
[[ "$output" =~ "$EXPECTED" ]] || false
}

@test "sql-multi-db: join on multiple databases with same name" {
seed_repos_with_tables_with_use_statements
dolt sql --multi-db-dir ./ -b -q "
USE repo1;
CREATE TABLE r2_t1 (pk BIGINT, c1 BIGINT, PRIMARY KEY(pk));
INSERT INTO r2_t1 (pk, c1) values (2,200),(3,300),(4,400);"
run dolt sql --multi-db-dir ./ -q "select * from repo1.r2_t1 join repo2.r2_t1 on repo1.r2_t1.pk=repo2.r2_t1.pk"
skip "Fails on Not unique table/alias"
[ "$status" -eq 0 ]
[[ ! $output =~ "Not unique table/alias" ]] || false
}

0 comments on commit 4298ac7

Please sign in to comment.