From 1201262158a2ef4dc9f0cf5d762620b201fbac7a Mon Sep 17 00:00:00 2001 From: Zach Musgrave Date: Wed, 11 Aug 2021 10:50:43 -0700 Subject: [PATCH] Regression test for issue 1131 --- integration-tests/bats/sql.bats | 46 ++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/integration-tests/bats/sql.bats b/integration-tests/bats/sql.bats index ab17fb867a..714131890d 100755 --- a/integration-tests/bats/sql.bats +++ b/integration-tests/bats/sql.bats @@ -914,7 +914,7 @@ SQL } @test "sql: replace count" { - skip "right now we always count a replace as a delete and insert when we shouldn't" +# skip "right now we always count a replace as a delete and insert when we shouldn't" dolt sql -q "CREATE TABLE test(pk BIGINT PRIMARY KEY, v BIGINT);" run dolt sql -q "REPLACE INTO test VALUES (1, 1);" [ $status -eq 0 ] @@ -1494,6 +1494,50 @@ SQL [[ "$output" =~ "table doesn't support UPDATE" ]] || false } +# regression test for query errors involving partial and full index matches +# See https://github.com/dolthub/dolt/issues/1131 +@test "sql: covering indexes" { + dolt sql <